List Accounts
VARIABLES
Set variable
config
to
Shortcut Input
SCRIPTING
Get
Value
for
accounts_type
in
config

Dictionary Value
VARIABLES
Set variable
accounts_type
to
Dictionary Value
SCRIPTING
Get
Value
for
page
in
config

Dictionary Value
VARIABLES
Set variable
page_n
to
page
SCRIPTING
If
page_n
does not have any value
NUMBER
1

Number
VARIABLES
Set variable
page_n
to
Number
SCRIPTING
Otherwise
SCRIPTING
End If

If Result
SCRIPTING
Get
Value
for
url
in
config

Dictionary Value
URL
accounts_type
/api/v1/accounts?type=
page_n
&page=
dict_url

URL
SCRIPTING
Get
Value
for
personal_token
in
config

Dictionary Value
NETWORK
Get contents of
URL
Options Under Construction

Contents of URL
SCRIPTING
Get dictionary from
Contents of URL

Dictionary
SCRIPTING
Get
Value
for
data
in
response_dict

Dictionary Value
SCRIPTING
Repeat with each item in
response_data

Repeat Results
SCRIPTING
Get
Value
for
attributes
in
Repeat Item

Dictionary Value
SCRIPTING
Get
Value
for
active
in
acc_attributes

Dictionary Value
SCRIPTING
If
acc_active
is
<value>
SCRIPTING
Get
Value
for
name
in
acc_attributes

Dictionary Value
SCRIPTING
If
accounts_type
is
asset
SCRIPTING
Get
Value
for
current_balance
in
acc_attributes

Dictionary Value
SCRIPTING
Get
Value
for
currency_symbol
in
acc_attributes

Dictionary Value
TEXT
acc_balance
(
acc_name
acc_currency
)

Text
VARIABLES
Add
Text
to
accounts
SCRIPTING
Otherwise
TEXT
acc_name

Text
VARIABLES
Add
Text
to
accounts
SCRIPTING
End If

If Result
SCRIPTING
Otherwise
SCRIPTING
End If

If Result
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
If
links.next
has any value
MATHS
page_n
+
1
Options Under Construction

Calculation Result
SCRIPTING
Set
page
to
Calculation Result
in
Dictionary

Dictionary
VARIABLES
Set variable
config
to
Dictionary
SHORTCUTS
Run
List Accounts
Input
config

Shortcut Result
VARIABLES
Add
Shortcut Result
to
accounts
SCRIPTING
Otherwise
SCRIPTING
End If

If Result
VARIABLES
Set variable
output
to
accounts
Showcuts