-
Notifications
You must be signed in to change notification settings - Fork 436
Open
Description
I try to use get_gym_details to collect some info on the gyms around me but I can't figure how to use the function.
I tried this :
gym={
'gid':'0d39156d87f74263ac595d3ab2a2f728.16',
'glatitude':45.876373,
'glongitude':4.713474
}
response= api.get_gym_details(gym_id = gym['gid'], gym_latitude = gym['glatitude'], gym_longitude = gym['glongitude'])
print('Response : \n\r{}'.format(pprint.PrettyPrinter(indent=4).pformat(response)))
But all I get is this:
...
[ INFO] Login process completed
[ INFO] Creating a new direct request...
[ INFO] Adding 'GET_GYM_DETAILS' to RPC request including arguments
[ INFO] Execution of RPC
[ INFO] Cleanup of request!
Response :
{ 'request_id': 746011827811372547L,
'responses': { 'GET_GYM_DETAILS': { 'result': 2}},
'status_code': 1}
Any idea on how to do a proper get_gym_details request please?
Metadata
Metadata
Assignees
Labels
No labels