YNAB

public class YNAB

YNAB API client

  • Provides access to user operations

    Declaration

    Swift

    public lazy var users: UserService { get set }
  • Provides access to budget operations

    Declaration

    Swift

    public lazy var budgets: BudgetService { get set }
  • Provides access to account operations

    Declaration

    Swift

    public lazy var accounts: AccountService { get set }
  • Provides access to category operations

    Declaration

    Swift

    public lazy var categories: CategoryService { get set }
  • Provides access to payee operations

    Declaration

    Swift

    public lazy var payees: PayeeService { get set }
  • Provides access to payee location operations

    Declaration

    Swift

    public lazy var payeeLocations: PayeeLocationService { get set }
  • Provides access to month operations

    Declaration

    Swift

    public lazy var months: MonthService { get set }
  • Provides access to transaction operations

    Declaration

    Swift

    public lazy var transactions: TransactionService { get set }
  • Provides access to scheduled transaction operations

    Declaration

    Swift

    public lazy var scheduledTransactions: ScheduledTransactionService { get set }
  • 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