-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequest_get.js
37 lines (32 loc) · 1.24 KB
/
request_get.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* Created by wyq on 2015/7/30.
*/
var request = require('superagent');
var url = "yao.mtq.tvm.cn/api/yaotv/auth?yyyappid=wx33dc1a5264b4e846&action=getUserInfo&openid=onC35t7iHt1ZmirLlzou3cQE1B6g";
var test = function () {
request.get(url, function (err, res) {
console.log("******** arg: %j", arguments);
})
};
//test();
var a = {
'0': null,
'1': {
req: {
method: 'GET',
url: 'yao.mtq.tvm.cn/api/yaotv/auth?yyyappid=wx33dc1a5264b4e846&action=getUserInfo&openid=onC35t7iHt1ZmirLlzou3cQE1B6g'
},
header: {
date: 'Thu, 30 Jul 2015 09:22:45 GMT',
'content-type': 'application/json;charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'close',
'access-control-allow-origin': '*'
},
status: 200,
text: '{"city":"Daxing","province":"Beijing","ret":"0","openid":"onC35t7iHt1ZmirLlzou3cQE1B6g","status":"ok","country":"CN",' +
'"resTime":1438248165,"errmsg":"",' +
'"headimgurl":"http:\\/\\/wx.qlogo.cn\\/mmopen\\/ibbRqs9nGAgAdtcgkO4zmM0RQBd6bcx3BALSSZeicReIBBLyicibto4eUlQmKhYgdbicZjvOHQ0q9ItCflpbRZwBmdBC2XCaM2jlx",' +
'"sex":"2","nickname":"平安是福"}'
}
};