Giter Site home page Giter Site logo

pokemongo-api's Introduction

pokemongo-api

Pokemon Go API for nodejs

Query the Pokemon database for what you want.. This library covers all functions available in the api throu Call() We are also working now to port all calls into functions,

Install

npm i -S pokemongo-api

Example

See /example folder

To-Do:

  • Login as pokemon trainer + token
  • Login over google + token
  • API connector
  • Make all calls available in functions
  • Add proxy options to requests
  • Run to pokestops
  • Farm specific area for pokestops
  • Human walking logic
  • Catch Pokemon automatically
  • Drop items when bag is full
  • Scan your inventar for XYZ CP pokemon and release them
  • Pokemon catch filter
  • Hatch eggs
  • Incubate eggs
  • Evolve pokemons
  • Use candy
  • Clean code
  • Fully automate this script

Available functions (more to come)

FortRecallPokemon() //More to come

FortDeployPokemon() //More to come

FortDetails() //More to come

FortSearch() //More to come

CatchPokemon() //More to come

EncounterPokemon() //More to come

ReleasePokemon() //More to come

UseItemPotion() //More to come

GetPlayer()

  • Returns the Player Object.
profile{
  creation_time: {Number}
  username: {String}
  team: {Number}
  tutorial: {Number/Boolean}
  poke_storage: {String}
  item_storage: {String}
  daily_bonus{
    NextCollectTimestampMs: {Number}
    NextDefenderBonusCollectTimestampMs: {Number}
  }
  currency{
    type: {String}
    amount: {Number}
  }
}

GetInventory()

  • Retrives the inventory object.
  inventory_delta{
    pokemon_data : {object}
    item : {object}
    pokedex_entry : {object}
    player_stats : {object}
    player_currency : {object}
    player_camera : {object}
    inventory_upgrades : {object}
    applied_items : {object}
    egg_incubators : {object}
    pokemon_family : {object}

  }

##Player functions

Poke.player.coords()

  • Returns array of coords: [latitude, longitude]

Poke.player.coords()

  • Returns array of coords

Poke.player.profile()

  • Returns player profile

Poke.player.createdDate()

  • Returns account creation date (dddd, MMMM Do YYYY, h:mm:ss a)

Poke.player.pokeStorage()

  • Returns poke storage amount

Poke.player.itemsStorage()

  • Returns items storage amount

Poke.player.currency()

  • Returns currencies

Poke.player.setLocation(location)

  • Sets user location Input:
***location***: (required) Has to be a object of location:
{
  type: 'name',
  name: 'Times Square'
}

OR

{
  type: 'coords',
  latitude: 0,
  longitude: 0,
  altitude: 0,
}

pokemongo-api's People

Contributors

bcbrian avatar dracoblue avatar jimmywarting avatar st0ffern avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.