All Projects → NicklasWallgren → Pokemongoapi Php

NicklasWallgren / Pokemongoapi Php

Licence: bsd-2-clause
Pokemon Go API PHP library

Labels

Projects that are alternatives of or similar to Pokemongoapi Php

Remove Bg
Programmatically remove backgrounds from your images using the remove.bg api
Stars: ✭ 124 (-2.36%)
Mutual labels:  api
Hafas Client
JavaScript client for HAFAS public transport APIs.
Stars: ✭ 125 (-1.57%)
Mutual labels:  api
Python Tumblpy
A Python Library to interface with Tumblr v2 REST API & OAuth
Stars: ✭ 126 (-0.79%)
Mutual labels:  api
Tooty
An alternative multi-accounts Web client for Mastodon.
Stars: ✭ 124 (-2.36%)
Mutual labels:  api
Adonis Bumblebee
Api Transformer for AdonisJs Framework
Stars: ✭ 125 (-1.57%)
Mutual labels:  api
Api Golang
golang多款短视频无水印视频解析接口包含抖音微视快手火山皮皮虾最右
Stars: ✭ 125 (-1.57%)
Mutual labels:  api
Covid 19 Api
This is the code running in AWS Lambda powering covid-api.mmediagroup.fr/v1. The API provides realtime and historical data on Coronavirus COVID-19 confirmed cases, deaths, and recovered cases. This API has now been called over 3 million times, thank you!
Stars: ✭ 122 (-3.94%)
Mutual labels:  api
Dm env
A Python interface for reinforcement learning environments
Stars: ✭ 127 (+0%)
Mutual labels:  api
Apidebugger
A IDEA plug-in to help you easily complete the API debugging.
Stars: ✭ 125 (-1.57%)
Mutual labels:  api
Jsonrpcserver
Process JSON-RPC requests in Python
Stars: ✭ 126 (-0.79%)
Mutual labels:  api
Pybids
Python tools for querying and manipulating BIDS datasets.
Stars: ✭ 124 (-2.36%)
Mutual labels:  api
Pix Api Recebimentos
Definição da API de recebimentos PIX
Stars: ✭ 125 (-1.57%)
Mutual labels:  api
Anyapi
AnyAPI is a library that helps you to write any API wrappers with ease and in pythonic way.
Stars: ✭ 126 (-0.79%)
Mutual labels:  api
Mis
模块接口服务,如何在一个模块内维护其对外暴露的接口(包括打包发布),而不是把接口和接口实现分离到两个不同的模块?
Stars: ✭ 124 (-2.36%)
Mutual labels:  api
Kinopoiskpy
Python API to kinopoisk.ru
Stars: ✭ 126 (-0.79%)
Mutual labels:  api
Jiosaavnapi
An unofficial API for JioSaavn written in Python 3
Stars: ✭ 123 (-3.15%)
Mutual labels:  api
Directus
Open-Source Data Platform 🐰 — Directus wraps any SQL database with a real-time GraphQL+REST API and an intuitive app for non-technical users.
Stars: ✭ 13,190 (+10285.83%)
Mutual labels:  api
Ng Gapi
ng-gapi a Google api module for Angular 6+
Stars: ✭ 126 (-0.79%)
Mutual labels:  api
Ajax Movie Recommendation System With Sentiment Analysis
Content-Based Recommender System recommends movies similar to the movie user likes and analyses the sentiments on the reviews given by the user for that movie.
Stars: ✭ 127 (+0%)
Mutual labels:  api
Pubg
Playerunknown’s Battlegrounds Websocket API example. Feel free to ask questions in Discord: Hormold#0683
Stars: ✭ 126 (-0.79%)
Mutual labels:  api

PokemonGoAPI-PHP

Total Downloads PHP7 Ready

Pokemon GO PHP API library

Install

Run the command composer require nicklasw/pkm-go-api.

Usage

EG:

 // Create the authentication config
$config = new Config();
$config->setProvider(Factory::PROVIDER_PTC);
$config->setUser('INSERT_USER');
$config->setPassword('INSERT_PASSWORD');

// Create the authentication manager
$manager = Factory::create($config);

// Add a event listener,
$manager->addListener(function ($event, $value) {
    if ($event === Manager::EVENT_ACCESS_TOKEN) {
        /** @var AccessToken $accessToken */
        $accessToken = $value;

        // Persist the access token in session storage, cache or whatever.
    }
});

// Initialize the pokemon go application
$application = new ApplicationKernel($manager);

// Retrieve the pokemon go api instance
$pokemonGoApi = $application->getPokemonGoApi();

// Retrieve the inventory
$inventory = $pokemonGoApi->getInventory();

// Retrieve the poke bank
$pokeBank = $inventory->getPokeBank();

// Retrieve a pokemon of type pidgey
$pokemon = $pokeBank->getPokemonsByType(PokemonId::PIDGEY)->first();

// Transfer / Release the pokemon (Send to the meat grinder)
$pokemon->transfer();

TODO

  • Implement the Map API
  • Improve logging

Contributors

Testing

$ composer test

Slack Chat

We use Slack for community discussions. You can find our team here: https://pokemongoapi-php.slack.com

Credits

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].