Pokemon.getPokemon()

Get information about a Pokemon based on its unique ID number

Usage

Hover over inputs/exits for more info.

var Pokemon = require('machinepack-pokemon');


// Get information about a Pokemon based on its unique ID number

Pokemon.getPokemon({

id: 1,

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

id required

The unique id for a Pokemon

1

Exits

error

An unexpected error occurred.

success

OK.

{ name: 'Bulbasaur',
  description: 'It has a seed planted in its back or something',
  imageUrl: 'http://pokeapi.co/api/v1/sprite/1/media/img/1383395659.12.png',
  types: [ 'poison', 'grass' ],
  moves: [ { name: 'Tackle', level: 1 } ] }