Created
July 27, 2020 07:40
-
-
Save Psykar/4898f38b3b1eeb4894dda75c45540a43 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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