Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Retrieve a Tree in Amatino Swift - A double-entry accounting library for iOS & MacOS
// Amatino Swift:
// Double entry accounting API
try Tree.retrieve(
session: session,
entity: starkIndustries,
globalUnit: usd,
callback: { (error: Error?, tree: Tree?) in {
// tree.accounts contains a hierachary of all
// Accounts in this entity, as either TreeNode
// or PlaceholderNode instances
Copy link

hwjeremy commented Aug 5, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment