Pokemon.listAllPokemon()

List the name and resource_uri for each known Pokemon.

Usage

Hover over inputs/exits for more info.

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


// List the name and resource_uri for each known Pokemon.

Pokemon.listAllPokemon({

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

Exits

error

An unexpected error occurred.

success

OK.

[ { id: 4, name: 'charmander' } ]