class

N2y::YNAB

Inherits Habitat::SettingsHelpers < Habitat::TempConfig < Reference < Object

Constants

HABITAT_SETTINGS = [{decl: client_id : String, example: nil, validation: nil}, {decl: secret : String, example: nil, validation: nil}] of Nil

Constructors

new(token_pair : N2y::TokenPair)
Source

Class methods

configure
Source
settings
Source

Instance methods

accounts
Source
authorize(code : String, return_uri : URI)

Authorize the code returned from the redirect.

Source
handle_error_response(response)
Source
push_transactions(budget_id : String, transactions : Array(Transaction))

Push transactions to YNAB, and return the number of duplicated transactions.

Source
redirect_uri(return_uri : URI)

Get the URI to redirect the user to for authorization.

Source
redirect_uri(return_uri : String)
Source
request(method : String, path : String, *, query = nil, data = nil, class klass : Responses.class)

Make request to YNAB. Possibly refreshing tokens if needed.

Source
settings
Source

Nested types