1. Go to this page and download the library: Download sjaakmoes/pokapi library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sjaakmoes / pokapi example snippets
// Solver
$solver = new AntiCaptcha("your_api_key_here", "PoGo_site_key");
$api->setCaptchaSolver($solver);
// The checkChallenge function will now try to resolve a possible captcha automatically with the provided resolver.
$result = $api->checkChallenge(); // FALSE on no capture, TRUE on resolved. Exception on failure to resolve.
// PTC Account
$authentication = new TrainersClub('username', 'password');
$position = new Position($latitude, $longitude, $altitude);
$deviceInfo = DeviceInfo::getDefault($uniqueDeviceId);
// Version
$version = new Version\Latest(); // 0.57.2 - You need a hashing server for this one.
$version = new Version\Legacy(); // 0.45.0
// Pogodev.io hashing server
$hashProvider = new Hashing\Pogodev("your_api_key_here");
$api = new API($version, $authentication, $position, $deviceInfo, $hashProvider);
// Initializes like the real client
$api->initialize();
// Accept ToS
$api->acceptTerms();
// Execute operation
$getPlayerResponse = $api->getPlayerData();
$mapObjects = $api->getMapObjects();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.