plugin-api-sdk
v0.0.3
Published
Xiaoyun APP plugin api SDK.
Downloads
4
Readme
plugin-api-sdk
Official Xiaoyun APP plugin api.
Init
var pluginApi = require('plugin-api-sdk');
// set your plugin key and secret.
pluginApi.setKeyAndSecret(config.plugin.key, config.plugin.secret);
Inner Test mode
pluginApi.__useTestHost();
Custom Host
pluginApi.customHost('http://10.10.196.74:8080/');
API
获取登录用户的信息
pluginApi.getLoginUserInfo(appKey, token, function(err, user) {
// do something.
});
获取APP信息
pluginApi.getAppInfo(appKey, function(err, info) {
// do something.
});