node mobilecommons:MobileCommons REST API的API包装器

qqconfiguration63007 1 0 zip 2024-10-06 21:10:24

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);

});

去做测试。

用户评论
请输入评论内容
评分:
暂无评论