An API wrapper to the amazing Graze public API.
Install the module with: npm install grazer
var grazer = require('grazer');
Create a new Grazer object:
var Grazer = new grazer.Grazer();
Now you can run any of the methods.
Please look under the /doc
folder or on CoffeeDocs.info.
new Grazer.getProduct(1033, true, function(result) {
console.log (result);
});
new Grazer.getProductSearch('jalapeno', true, function(result) {
console.log (result);
});
new Grazer.getBoxContents('F9H0N', true, function(result) {
console.log (result);
});
new Grazer.getCategories(false, function(result) {
console.log (result);
});
TODO: the asynch methods need Jasmine tests to be written for them.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
First release (0.1.0): 19/06/2014
Copyright (c) 2014 Chris von Csefalvay. Licensed under the MIT license.
Disclaimer: I am not affiliated with Graze, just a fan of their snack boxes.
If you enjoy this module, please do me a favour and check out Special Effect. They're a charity that helps disabled gamers by acquiring and/or hacking together adaptive and augmentative devices to help them play. The experience of gaming belongs to everyone. Consider donating or helping them out - trust me, it'll change your life.