tastekit
v0.1.1
Published
Simple module to use the Taste Kit API.
Downloads
3
Readme
Taste Kit
This is a simple wrapper for TasteKit
Installation
This module is installed via npm:
npm install tastekit
Usage
var TasteKit = require('tastekit');
new TasteKit('YOURTOKEN').like('USERIDENTIFIER', 'ITEMIDENTIFIER').then(function () {
// Success...
})
.catch(function (err) {
// Error handling...
});
All methods
All the current methods of the API are implemented this way :
var client = new TasteKit('YOURTOKEN');
client.like('USERIDENTIFIER', 'ITEMIDENTIFIER').then(function () { ... });
client.dislike('USERIDENTIFIER', 'ITEMIDENTIFIER').then(function () { ... });
client.getRecommendations('USERIDENTIFIER').then(function () { ... });
client.deleteItem('ITEMIDENTIFIER').then(function () { ... });
client.deleteUser('USERIDENTIFIER').then(function () { ... });
MIT Licensed
See the LICENSE file for details.