YNAB
public struct YNAB
YNAB API client
-
Provides access to user operations
Declaration
Swift
public let users: any UserServiceType -
Provides access to plan operations
Declaration
Swift
public let plans: any PlanServiceType -
Provides access to account operations
Declaration
Swift
public let accounts: any AccountServiceType -
Provides access to category operations
Declaration
Swift
public let categories: any CategoryServiceType -
Provides access to payee operations
Declaration
Swift
public let payees: any PayeeServiceType -
Provides access to payee location operations
Declaration
Swift
public let payeeLocations: any PayeeLocationServiceType -
Provides access to month operations
Declaration
Swift
public let months: any MonthServiceType -
Provides access to transaction operations
Declaration
Swift
public let transactions: any TransactionServiceType -
Provides access to scheduled transaction operations
Declaration
Swift
public let scheduledTransactions: any ScheduledTransactionServiceType -
Provides access to money movement operations
Declaration
Swift
public let moneyMovements: any MoneyMovementServiceType -
Initializes the YNAB API client
Declaration
Swift
public init(accessToken: String, urlSession: URLSession = .shared)Parameters
accessTokenPersonal API access token, or token obtained via OAuth login
urlSessionBy default, it uses the default
URLSession.shared, but allows the injection of a custom session
View on GitHub