File tree Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change 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 
44var  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  } 
Original file line number Diff line number Diff line change 11'use strict' ; 
22
33var  PingppResource  =  require ( '../PingppResource' ) ; 
4- var  pingppMethod  =  PingppResource . method ; 
54
65module . exports  =  PingppResource . extend ( { 
76
87  path : 'events' , 
98
109  includeBasic : [ 
11-    'list' , 'retrieve' 
10+      'retrieve' 
1211  ] , 
1312
1413} ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments