rankcloud
v0.1.0
Published
rank.cloud module for Node.js
Downloads
2
Readme
rankcloud
rank.cloud module for Node.js
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.