NicklasWallgren / PokemonGoAPI-PHP

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

evolve and proxy #114

Closed f2008305 closed 8 years ago

f2008305 commented 8 years ago

2 requests in one: 1) is there a way to evolve a pokemon? in example i don't see it 2) is there a way to set a proxy or more? (to avoid getting your real ip from niantic and balance requests)

paoloalby commented 8 years ago

yes, $pokemon->evolve()

but check canEvolve() first.

WisdomSky commented 8 years ago

what do you mean by setting proxy or more? hiding behind multiple level of proxies?

f2008305 commented 8 years ago

i mean this: your server => niantic server your server => proxy server => niantic server so if they will ever ban your ip you can simply change the proxy and continue... if you have100 users logging in through your server it will be easy to get banned from niantic if they start to do it...

NicklasWallgren commented 8 years ago

It's possible to route the traffic via a proxy.

Have a look here: https://github.com/NicklasWallgren/PokemonGoAPI-PHP/pull/83