jaspervdm / pogoapi-php
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.
API for Pokemon Go
dev-master
2016-09-01 18:22 UTC
Requires
- php: ^7.0
- ext-xxhash: *
- guzzlehttp/guzzle: ^6.0
- jaspervdm/pogoprotos-php: dev-master#e6e0bf540a16c8ddef7224300ed84d3ae51f59b4
- monolog/monolog: ^1.20
- nicklasw/s2-geometry-library-php: dev-master
- pogo-php/pogoencrypt-php: ^1.0
This package is not auto-updated.
Last update: 2020-08-21 20:29:38 UTC
README
API for Pokemon Go
Progress
- Login with google
- Login with PTC
- Uk6 compatible
- Obtain endpoint
- Obtain profile
- Obtain map objects (pokemons/pokestops/gyms)
Installation
Add the following fields in your project composer.json
:
{ "require": { "jaspervdm/pogoapi-php": "dev-master" }, "minimum-stability": "dev", "prefer-stable": true }
Usage
// First set up some logger $logger = new \Monolog\Logger("POGOAPI"); // Set initial location $location = new \POGOAPI\Map\Location(LATITUDE, LONGITUDE, ALTITUDE); // Create a Session instance $session = new \POGOAPI\Session\GoogleSession($logger, $location, USERNAME, PASSWORD); $session->authenticate(); $session->createEndpoint(); // At this point one can communicate with the pokemon go servers, for example: $profile = $session->getProfile(); echo "My username is ".$profile->getUsername()."\n";
See also the examples/
directory
Contributions
Credits
- AeonLucid for the proto files
- POGO-PHP for the pure PHP implementation of encrypt.c
- Sjaakmoes for the correct implementation of request signing
- MatthewKingDev for the modified xxhash