Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Retrieve an Account in Amatino Swift - A double-entry accounting library for iOS & MacOS
// Amatino Swift:
// Double entry accounting API
try Account.retrieve(
session: session,
entity: starkIndustries,
accountId: cashAccountId,
callback: { (error: Error?, account: Account?) in
guard error == nil else {
// Handle error, e.g. a 404 for an account that does not
// exist, or 403 for an account you are not permitted to
// access.
guard let cashAccount: Account = account else {
// Should never happen
// Do cool stuff with the retrieved account
print("Retrieved Account with name: \(")

This comment has been minimized.

Copy link
Owner Author

hwjeremy commented Jul 17, 2018

The parameters supplied to Account.retrieve() come from the following examples:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.