fanburst-api

1.0.2 • Public • Published

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 {
    //...
  }
});

Package Sidebar

Install

npm i fanburst-api

Weekly Downloads

1

Version

1.0.2

License

none

Last publish

Collaborators

  • shabanovtg