1.0.2 • Published 8 years ago

fanburst-api v1.0.2

Weekly downloads
1
License
-
Repository
github
Last release
8 years ago

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

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago