Fanburst Api for Node.js
- get user profile
- following
- contains
- add (follow)
$ npm install fanburst-api
var FanburstApi = require('fanburst-api');
var fanburstApi = new FanburstApi();
Note: You can get accessToken
with help passport-fanburst
fanburstApi.me(accessToken, function(err, result) {
if (err) {
//...
} else {
//...
}
});
fanburstApi.followingContains(followingId, accessToken, function(err, result) {
if (err) {
//...
} else {
//...
}
});
fanburstApi.followingAdd(followingId, accessToken, function(err, result) {
if (err) {
//...
} else {
//...
}
});