tewksbg / pogoapi-php

API for Pokemon Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

POGOAPI-PHP

API for Pokemon Go

Progress

[x] Login with google [ ] Login with PTC [x] Uk6 compatible [x] Obtain endpoint [x] Obtain profile

Installation

This API can be loaded with composer:

composer require jaspervdm/pogoapi-php

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

About

API for Pokemon Go


Languages

Language:PHP 100.0%