Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

kebabtent/pogoapi-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POGOAPI-PHP

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

About

API for Pokemon Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages