rankcloud

0.1.0 • Public • Published

rankcloud

rank.cloud module for Node.js

version download

js-standard-style

Usage

# config.json
{
  "rankcloud": {
    "mode": "product",
    "connect_id": ""
  },
  "test": {
    "id": "facebook access_token"
  }
}
var RankCloud = require('./')
var config = require('./config.json')
var run = require('iterator-runner')

var client = new RankCloud(config.rankcloud)

run(function *() {
  try {
    var result = yield client.userConnect.bind(null, {
      id: config.test.id,
      sns_type: 'FB',
      token: config.test.token
    })
    console.info('connect', result)

    result = yield client.userDisconnect.bind(null, {
      id: config.test.id,
      sns_type: 'FB'
    })
    console.info('disconnect', result)

    result = yield client.userDelete.bind(null, {
      id: config.test.id,
      sns_type: 'FB'
    })
    console.info('delete', result)
  } catch (err) {
    console.error(err)
  }
})

LICENSE

rankcloud is licensed under the MIT license.

Package Sidebar

Install

npm i rankcloud

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • egg-