-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Jacob Jordan edited this page Aug 18, 2016
·
1 revision
For full knowledge of the Giant Bomb API, you should view the [official documentation here.] (http://www.giantbomb.com/api/documentation)
npm install giant-bomb
After installation, require the package into your module and then provide your API Key and unique User-Agent.
var GiantBomb = require('giant-bomb');
var gb = new GiantBomb('API Key', 'User-Agent');API Keys are available here if you do not have one.
YES! You now MUST provide a unique User-Agent. This changed sometime during summer 2016 and broke a lot of code.
This User-Agent can be whatever you want, but it should at least relate to your application:
Good User-Agents:
- '@GameAnHour - Twitter Bot - Runs a few requests every hour'
- 'Bot for Giant Bomb Unarchived to catch live shows. Runs a single request every 5 minutes.'
Bad User-Agents:
- 'MozillaFirefox/1.0'
- 'totally unique'
You get the idea.
https://tonicdev.com/npm/giant-bomb