YNAB
public struct YNAB
YNAB API client
-
Provides access to user operations
Declaration
Swift
public let users: UserService
-
Provides access to budget operations
Declaration
Swift
public let budgets: BudgetService
-
Provides access to account operations
Declaration
Swift
public let accounts: AccountService
-
Provides access to category operations
Declaration
Swift
public let categories: CategoryService
-
Provides access to payee operations
Declaration
Swift
public let payees: PayeeService
-
Provides access to payee location operations
Declaration
Swift
public let payeeLocations: PayeeLocationService
-
Provides access to month operations
Declaration
Swift
public let months: MonthService
-
Provides access to transaction operations
Declaration
Swift
public let transactions: TransactionService
-
Provides access to scheduled transaction operations
Declaration
Swift
public let scheduledTransactions: ScheduledTransactionService
-
Initializes the YNAB API client
Declaration
Swift
public init(accessToken: String, urlSession: URLSession = .shared)
Parameters
accessToken
Personal API access token, or token obtained via OAuth login
urlSession
By default, it uses the default
URLSession.shared
, but allows the injection of a custom session