getBudgetDetails: Get budget details

View source: R/getBudgetDetails.R

getBudgetDetailsR Documentation

Get budget details

Description

Gets the following YNAB data for a pre-specified budget: "accounts", "categories", "months", "payees", "payee_locations", "subcategories", "scheduled_transactions", "transactions". Caution: Must be careful with use, as to not overload YNAB's servers.

Arguments

i

name of endpoint (one of: "accounts", "categories", "months", "payees", "payee_locations", "subcategories", "scheduled_transactions", "transactions")

param.token

Your YNAB API personal access token

param.budgetid

The ID associated with the selected budget

Examples

#token location
library(dplyr)
mytoken <- "1234567890ABCDE"
df_budgets <- getStartingData(i = "budgets", param.token = mytoken)
mybudgetid <- df_budgets[df_budgets$name == "My Budget",c("id")]
#OR
#mybudgetid <- selectBudget(param.token = mytoken)
df_accounts <- getBudgetDetails(i = "accounts", param.token = mytoken, 
param.budgetid = mybudgetid)

mathewroy/ynabr documentation built on Jan. 28, 2023, 2:40 a.m.