Home

Awesome

Poke.io

Pokemon GO api node.js library, still WIP, we have a dev channel on discord: https://discord.gg/W9CZTgn (is for dev only don't ask for support here)<br> Check 'example.js' for examples

Installation & Usage:

npm install pokemon-go-node-api
var Pokeio = require('pokemon-go-node-api')

Check example.js for the result showed in the demo or check the documentation below.

Demo:

alt tag

Documentation:

Pokeio.init(username, password, location, provider, callback)

Initializes Pokeio with either pokemon trainer club credentials or google account. Accepts locations by name or coordinates

Parameters

Pokeio.GetAccessToken(username, password, callback)

Will save the access token to the Pokeio internal state.

Parameters

Pokeio.GetApiEndpoint(callback)

Will save the api endpoint to the Pokeio internal state.

Parameters

Pokeio.GetProfile(callback)

Parameters

Pokeio.GetLocation(callback)

Reads current latitude and longitude and returns a human readable address using the google maps api.

Parameters

Pokeio.GetLocationCoords()

Returns

Pokeio.SetLocation(location, callback)

Will save cooridinates to the Pokeio internal state. Accepts raw coordinates or location name based on the type property.

Parameters

Pokeio.RenamePokemon(id, name, callback)

Sets the nickname of a pokemon

Parameters

The status can eather of:

Thanks to:

Python demo: tejado <br>

Contact me

@Arm4x Feel free to contact me for help or anything else