class N2y::YNAB
- N2y::YNAB
- Reference
- Object
Included Modules
- Habitat::SettingsHelpers
- Habitat::TempConfig
Defined in:
n2y/ynab.crn2y/ynab/account.cr
n2y/ynab/exceptions.cr
n2y/ynab/responses.cr
n2y/ynab/transaction.cr
Constant Summary
-
HABITAT_SETTINGS =
[{decl: client_id : String, example: nil, validation: nil}, {decl: secret : String, example: nil, validation: nil}] of Nil
Constructors
Class Method Summary
Instance Method Summary
- #accounts : Array(Account)
-
#authorize(code : String, return_uri : URI)
Authorize the code returned from the redirect.
- #handle_error_response(response)
-
#push_transactions(budget_id : String, transactions : Array(Transaction))
Push transactions to YNAB, and return the number of duplicated transactions.
-
#redirect_uri(return_uri : URI)
Get the URI to redirect the user to for authorization.
- #redirect_uri(return_uri : String)
-
#request(method : String, path : String, *, query = nil, data = nil, class klass : Responses.class)
Make request to YNAB.
- #settings
Constructor Detail
Class Method Detail
Instance Method Detail
def push_transactions(budget_id : String, transactions : Array(Transaction))
#
Push transactions to YNAB, and return the number of duplicated transactions.
def request(method : String, path : String, *, query = nil, data = nil, class klass : Responses.class)
#
Make request to YNAB. Possibly refreshing tokens if needed.