fanburst-api
v1.0.2
Published
Fanburst Api for Node.js
Downloads
2
Readme
fanburst-api
Fanburst Api for Node.js
- get user profile
- following
- contains
- add (follow)
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 {
//...
}
});