tejado / pgoapi

Pokemon Go API lib
Other
1.4k stars 445 forks source link

Printing problem #70

Closed ztukaz closed 8 years ago

ztukaz commented 8 years ago
bomb = api.catch_pokemon(...)
print ('\n\r{}'.format(pprint.PrettyPrinter(indent=1).pformat(bomb)))

results: <pgoapi.pgoapi.PGoApi instance at 0x02D41148>

expected something like "responses": { "CATCH_POKEMON": { status: CATCH_SUCCESS } }

Catch Response: 
status: CATCH_FAILED

What i am missing to decode the results of the method?

Cl0v1s commented 8 years ago

You're actually trying to print the api object (and you never send your request to the server). However you want your response from the server. Try to print bomb.call()

ztukaz commented 8 years ago

Thank you