dev-master
9999999-devApi for pokemon go
GPL-3.0+
The Requires
- php >=7.0.0
- guzzlehttp/guzzle ~6.0
- vlucas/phpdotenv ^2.3
by Stefano Valenzano
Wallogit.com
2017 © Pedro Peláez
Api for pokemon go
Pokemon GO PHP API library, (*1)
This is a conversion of this: PokeGOAPI-Java in php., (*3)
git clone https://github.com/tuttarealstep/PokeGOAPI-PHP.gitcd PokeGOAPI-PHPcomposer installHow to use example:, (*4)
use PokemonGoAPI\Api\PokemonGoAPI;
$PokemonGoAPILogin = (new \PokemonGoAPI\Auth\GoogleLogin())->login('username', 'password'); //Use Google for login and retrive token
$PokemonGoAPILogin = (new \PokemonGoAPI\Auth\GoogleLogin())->loginWithGoogleToken($token); //or use existing token
$PokemonGoAPI = new PokemonGoAPI($PokemonGoAPILogin); //Send token to the api
echo $PokemonGoAPI->getPlayerProfile()->getUsername() . "\n"; //Print User Username
For enable debug message go to src/PokemonGoAPI/Utils/Output.php and change:
php
public $PK_GO_DEBUG = false;, (*5)
To:, (*6)
php
public $PK_GO_DEBUG = true;, (*7)
This project is in no way affiliated with, maintained, sponsored, authorized by Niantic, The Pokémon Company, Nintendo or any of its affiliates or subsidiaries. This is an independent and unofficial API for educational use ONLY. Using the project might be against the terms of service., (*8)
Api for pokemon go
GPL-3.0+