2017 © Pedro Peláez
 

library pokegoapi-php

Api for pokemon go

image

tuttarealstep/pokegoapi-php

Api for pokemon go

  • Wednesday, August 3, 2016
  • by tuttarealstep
  • Repository
  • 10 Watchers
  • 21 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 14 Forks
  • 9 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PokeGOAPI-PHP

Pokemon GO PHP API library, (*1)

Build Status, (*2)

This is a conversion of this: PokeGOAPI-Java in php., (*3)

Build

  • Clone the repo
  • git clone https://github.com/tuttarealstep/PokeGOAPI-PHP.git
  • Move to the repo folder
  • cd PokeGOAPI-PHP
  • Install the dependencies
  • composer install

Usage

How 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)

Problems

Todo

  • Implement PTC Login
  • Test all things
  • Check for issues
  • Comment code
  • Phpdoc
  • Guide

Credits

  • Grover-c13 for his java api (Beacuse I've converted his api in php and for the inspiration)
  • jaspervdm for his protos
  • NicklasWallgren because I've used for his updated protos

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)

The Versions

03/08 2016

dev-master

9999999-dev

Api for pokemon go

  Sources   Download

GPL-3.0+

The Requires

 

by Stefano Valenzano