NicklasWallgren / PokemonGoAPI-PHP

Pokemon Go API PHP library
BSD 2-Clause "Simplified" License
130 stars 51 forks source link

GetMapResources() return empty object #149

Closed gabrieltva closed 7 years ago

gabrieltva commented 7 years ago

Hi guys,

I am trying to return the pokemon/pokestop nearby of the location, but the method GetMapResources() return a empty object, like this: object(NicklasW\PkmGoApi\Api\Map\Data\Resource)#45 (6) { ["pokestops":protected]=> array(0) { } ["gyms":protected]=> array(0) { } ["spawnPoints":protected]=> array(0) { } ["catchablePokemons":protected]=> array(0) { } ["wildPokemons":protected]=> array(0) { } ["nearbyPokemons":protected]=> array(0) { } }

Searching about this, in another API (python), it is necessary add a file named "encrypt.so" to search pokemons. In this API it is necessary too?

vankxr commented 7 years ago

Tell us what are you sending as request message

gabrieltva commented 7 years ago

How I can do that? @Vankxr

DrDelay commented 7 years ago

Request signing is not implemented here, yet. #92 has been around for some time, though.

vankxr commented 7 years ago

Dump the request after building and before sending it to the server ? @gabrieltva

Ni42 commented 7 years ago

That won't help, because in order to get map objects, you need to sign your request, which this API can't currently do, see DrDelays comment.