Skip to content

egg-/rankcloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

RANK.CLOUD Node SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published