tagplay
A javascript wrapper for the Tagplay API
Works both in node.js and the browser with some help from browserify
Installation
$ npm install tagplay
Examples
var client = token: 'Tagplay Token'; // Get info about a Projectclient;// List Feeds belonging to a Projectclient;// List Posts belonging to a Feedclient;// could also limit the result with the limit optionclient;
API
getProject(project_id [, options], callback)
listFeed(project_id [, options], callback)
getFeed(project_id, feed_id [, options], callback)
listPost(project_id, feed_id [, options], callback)
getPost(project_id, feed_id, post_id [, options], callback)
The options
object accepts the attributes limit
and offset
which are used for pagination
likePost(project_id, feed_id, post_id, callback)
unlikePost(project_id, feed_id, post_id, callback)
flagPost(project_id, feed_id, post_id, callback)
unflagPost(project_id, feed_id, post_id, callback)