tejado / pgoapi

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

Would some one explain how APIs like get_map_object work? #62

Closed LASkuma closed 8 years ago

LASkuma commented 8 years ago

I can see get_map_object was used in demo but cannot find its definition anywhere. Where should I start then?

joshk6656 commented 8 years ago

You can find the list of the ones you can use here:

https://github.com/tejado/pgoapi/blob/master/pgoapi/protos/POGOProtos/Networking/Requests_pb2.py

scroll down until you see

RequestType = enum_type_wrapper.EnumTypeWrapper(_REQUESTTYPE)

those are the implemented ones... Finding the parameters you need to pass is a whole different story....

Look here:

https://github.com/tejado/pgoapi/blob/master/pgoapi/protos/POGOProtos/Networking/Requests/Messages_pb2.py

Search for the name of the request you are trying to make and you should see it.

LASkuma commented 8 years ago

Thank you for your detailed explanation! It's really helpful to me!