GithubHelp home page GithubHelp logo

andreyazevedo / eshop-api-wrapper Goto Github PK

View Code? Open in Web Editor NEW
26.0 4.0 4.0 947 KB

API Wrapper to get information from Nintendo Eshop.

License: MIT License

JavaScript 100.00%
nintendo eshop api js javascript nintendo-switch nintendo-eshop

eshop-api-wrapper's Introduction

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 --save

Example

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 be relevance, release, title and price.
  • options.direction: default: desc. Can be asc or des.
  • options.system: default: switch. Nintendo system. Can be ds, 3ds, wii, wii_u, ios, android, ios_android and switch.
  • options.limit: default: 10. Limit of search results. Max value is 200.
  • options.availability: Status of the game availability. Can be now, new, soon and prepurchase.
  • 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, simulation and sports_racing.
  • options.price: Can be 4.99, 9.99, 19.99, 39.99 and 40_plus.
  • options.number: Filter by number of players. Can be 1, 2, 3 and 4.

filter({options})

  • options.sort: default: release. Order of results. Can be relevance, release, title and price.
  • options.direction: default: desc. Can be asc or des.
  • options.system: default: switch. Nintendo system. Can be ds, 3ds, wii, wii_u, ios, android, ios_android and switch.
  • options.limit: default: 10. Limit of search results. Max value is 200.
  • options.availability: Status of the game availability. Can be now, new, soon and prepurchase.
  • 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, simulation and sports_racing.
  • options.price: Can be 4.99, 9.99, 19.99, 39.99 and 40_plus.
  • options.number: Filter by number of players. Can be 1, 2, 3 and 4.

eshop-api-wrapper's People

Contributors

andreyazevedo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

eshop-api-wrapper's Issues

404 Not Found

Accessing this API now produces 404 error, does this mean that this API no longer exists?

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.