Skip to content

Commit 64ad127

Browse files
committed
移除 event list 接口
1 parent 5de2ff7 commit 64ad127

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

example/event.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// api_key 获取方式:登录 [Dashboard](https://dashboard.pingxx.com)->点击管理平台右上角公司名称->开发信息-> Secret Key
2-
var API_KEY = "sk_test_ibbTe5jLGCi5rzfH4OqPW9KC"
2+
var API_KEY = 'sk_test_ibbTe5jLGCi5rzfH4OqPW9KC';
33
// 设置 api_key
44
var pingpp = require('../lib/pingpp')(API_KEY);
55

@@ -8,18 +8,7 @@ pingpp.events.retrieve(
88
'evt_VzWdLFbm5D6OdOuzQv7oqF0X',
99
function(err, event) {
1010
if (err != null) {
11-
console.log("pingpp.events.retrieve fail:", err);
12-
}
13-
// YOUR CODE
14-
}
15-
);
16-
17-
// list all events
18-
pingpp.events.list(
19-
{ limit: 3 },
20-
function(err, events) {
21-
if (err != null) {
22-
console.log("pingpp.events.list fail:", err);
11+
console.log('pingpp.events.retrieve fail:', err);
2312
}
2413
// YOUR CODE
2514
}

lib/resources/Events.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
'use strict';
22

33
var PingppResource = require('../PingppResource');
4-
var pingppMethod = PingppResource.method;
54

65
module.exports = PingppResource.extend({
76

87
path: 'events',
98

109
includeBasic: [
11-
'list','retrieve'
10+
'retrieve'
1211
],
1312

1413
});

0 commit comments

Comments
 (0)