Open with one click!

Get Account ID for user who owns the api_key

In [ ]:
# import utility definitions %run ./01-utils.ipynb
In [ ]:
# make an API call payload = {"query":{"accounts":{"account_id":None}}} response = call_api("query", payload) pp.pprint(response) ## expected result, last line contains the account id: # # {'event': 'query', # 'id': '...' # message id for the API request # 'multi_response': False, # for internal use, may be ignored # 'query': {'accounts': {'account_id': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'}}} # this is the account id
In [ ]: