0.1.1 • Published 8 years ago

tastekit v0.1.1

Weekly downloads
12
License
-
Repository
github
Last release
8 years ago

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.