var https = require('https')
// var request = require('request');
var appKey="f2d45385f31e88233e1f1ef6c4247cce";
var appSecret='e1c115dd3ad1';
var nonce='12345'
var curTime=new Date().getTime()
var checkSum=encodeURI(appSecret + nonce + curTime)
var options = {
method: 'POST',
hostname: 'https://api.netease.im',
path:'/nimserver/user/create.action',
headers: {
'AppKey':appKey,
'Nonce':nonce,
'CurTime':curTime,
'CheckSum':checkSum,
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
}
};
https.request(options, function (res) {
res.setEncoding('utf8');
console.log(res)
})
慕勒0069038
相关分类