Skip to content

Instantly share code, notes, and snippets.

@Psykar
Created July 27, 2020 07:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Psykar/4898f38b3b1eeb4894dda75c45540a43 to your computer and use it in GitHub Desktop.
Save Psykar/4898f38b3b1eeb4894dda75c45540a43 to your computer and use it in GitHub Desktop.
import requests
headers = dict(Authorization="Bearer <redacted>")
resp = requests.get("https://api.up.com.au/api/v1/accounts", headers=headers)
for account in resp.json()['data']:
print(account['attributes']['displayName'], account['attributes']['balance']['value'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment