node mobilecommons:MobileCommons REST API的API包装器
MobileCommons REST API库MobileCommons REST API的API包装器。它目前只公开一个基本的 get 方法和一个“消息”便利端点包装器方法。
安装
npm install mobilecommons
用法
MobileCommons API 使用基本身份验证进行身份验证。
var MobileCommons = require('mobilecommons');
var mc = new MobileCommons( 'username', 'password' );
mc.get('messages', {'include_profile': 1}, function(err, data){
console.log(data.response.messages[0].message);
});
去做测试。