View source: R/getBudgetDetails.R
| getBudgetDetails | R Documentation |
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.
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 |
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.