fanburst-api
Fanburst Api for Node.js
- get user profile
- following
Install
$ npm install fanburst-api
Usage
var FanburstApi = require('fanburst-api')();
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 {
//...
}
});