2017 © Pedro Peláez
 

library pogoapi-php

API for Pokemon Go

image

jaspervdm/pogoapi-php

API for Pokemon Go

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

POGOAPI-PHP

API for Pokemon Go, (*1)

Progress

  • [x] Login with google
  • [x] Login with PTC
  • [x] Uk6 compatible
  • [x] Obtain endpoint
  • [x] Obtain profile
  • [x] Obtain map objects (pokemons/pokestops/gyms)

Installation

Add the following fields in your project composer.json: ``` json { "require": { "jaspervdm/pogoapi-php": "dev-master" }, "minimum-stability": "dev", "prefer-stable": true }, (*2)


## Usage ``` php // 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, (*3)

Contributions

Credits

The Versions