Skip to content

Instantly share code, notes, and snippets.

@trezy
Created July 28, 2016 20:21
Show Gist options
  • Save trezy/85052df0845755945db37910106e02ad to your computer and use it in GitHub Desktop.
Save trezy/85052df0845755945db37910106e02ad to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import pprint
import sys
sys.path.append('../pgoapi')
from pgoapi import PGoApi
position = (43.060792, -89.410350, 0)
api = PGoApi()
api.set_position(*position)
api.get_player()
response_dict = api.call()
print('Response dictionary: \n\r{}'.format(pprint.PrettyPrinter(indent=4).pformat(response_dict)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment