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