In [1]:
from memair import Memair
# Use Otto the sandbox user's access token or create your own at https://memair.com/temporary_access_token
access_token = '0000000000000000000000000000000000000000000000000000000000000000'

user = Memair(access_token)
In [2]:
user_details = user.query('''
{
  UserDetails(){
    email
    biometric_count
    digital_activity_count
    emotion_count
    journal_count
    location_count
    physical_activity_count    
  }
}
''')

user_details
Out[2]:
{'data': {'UserDetails': [{'email': '[email protected]',
    'biometric_count': 58735,
    'digital_activity_count': 0,
    'emotion_count': 0,
    'journal_count': 2,
    'location_count': 108745,
    'physical_activity_count': 0}]}}
In [ ]: