-
Notifications
You must be signed in to change notification settings - Fork 15
Development
Blabla let me figure out a way to preload data. Central to the whole project right now is that a single server instance will serve a single player. A server consists of both an Express server (facing the user) and a MITM proxy server that sits between the client (Android) and Pokemon Go (Niantic). It will try to gather as much data as possible from the user by listening in.
As a developer, you'll need the API to figure out what kind of data to expect.
Mostly, we base ourselves on https://github.com/AeonLucid/POGOProtos for object definitions and just keep that format. There are a few exceptions though, especially in the way things are structured. Below is a list of all calls you can perform.
Everything is formatted in JSON.
GET /api/player
Returns a rather large player object.
{
location: {...},
stats: {...},
pokecoins: {...},
}
GET /api/pokemons
Returns a list of POGOProtos.Data.PokemonData
(TODO add example)
GET /api/items
Returns an object where keys are POGOProtos.Inventory.ItemId and values are amounts.
(TODO add example)