-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
31 lines (29 loc) · 883 Bytes
/
test.js
File metadata and controls
31 lines (29 loc) · 883 Bytes
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
/********************************************************************
* Copyright (C) 2016 上海洋码头网络技术有限公司. All Rights Reserved.
*
* @author tongliang
* @email tongliang@ymatou.com
* @date 2016/3/16
*
********************************************************************
*/
var apiClient = require('./lib/apiclient.js');
apiClient({
method: 'get',
host: 'http://www.ymatou.com',
path: '/',
keepAlive: false
}, null, function (err, result) {
console.log('start test-----');
console.log('ymt-node-apiclient test err:', err, ',result:', result);
console.log('end test-----');
});
apiClient.exec({
method: 'get',
host: 'http://www.ymatou.com',
path: '/'
}, null, function (err, result) {
console.log('start test-----');
console.log('ymt-node-apiclient exec test err:', err, ',result:', result);
console.log('end test-----');
});