0.2.2 • Published 8 years ago
eshop-api-wrapper v0.2.2
Eshop API Wrapper
API Wrapper to get information from Nintendo Eshop.
Get Starded
Install the package with NPM and add it to your dependencies:
$ npm install eshop-api-wrapper --saveExample
const eshop = require('eshop-api-wrapper');
eshop.search('Zelda')
.then(data => console.log(data))
.catch(err => console.error(err))Methods
game(id)
- The ID is provided by the Nintendo API and your format is something like that
GHbaBYuv3zqQeW1CVQlmTSehZ45KTV78.
search(query, {options})
- query: The search term.
- options.sort: default:
release. Order of results. Can berelevance,release,titleandprice. - options.direction: default:
desc. Can beascordes. - options.system: default:
switch. Nintendo system. Can beds,3ds,wii,wii_u,ios,android,ios_androidandswitch. - options.limit: default:
10. Limit of search results. Max value is200. - options.availability: Status of the game availability. Can be
now,new,soonandprepurchase. - options.offset: default:
0. Change the position of the search. Useful to pagination. - options.category: Can be
action_adventure,application,first_person,party,role_playing,music_fitness,education,puzzle_strategy,simulationandsports_racing. - options.price: Can be
4.99,9.99,19.99,39.99and40_plus. - options.number: Filter by number of players. Can be
1,2,3and4.
filter({options})
- options.sort: default:
release. Order of results. Can berelevance,release,titleandprice. - options.direction: default:
desc. Can beascordes. - options.system: default:
switch. Nintendo system. Can beds,3ds,wii,wii_u,ios,android,ios_androidandswitch. - options.limit: default:
10. Limit of search results. Max value is200. - options.availability: Status of the game availability. Can be
now,new,soonandprepurchase. - options.offset: default:
0. Change the position of the search. Useful to pagination. - options.category: Can be
action_adventure,application,first_person,party,role_playing,music_fitness,education,puzzle_strategy,simulationandsports_racing. - options.price: Can be
4.99,9.99,19.99,39.99and40_plus. - options.number: Filter by number of players. Can be
1,2,3and4.