We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a1793e commit 34504f7Copy full SHA for 34504f7
index.js
@@ -4,7 +4,13 @@ wechat.List = require('./lib/list');
4
// 事件
5
wechat.Event = require('./lib/events');
6
7
-wechat.API = require('wechat-api');
+Object.defineProperty(wechat, "API", {
8
+ get: function () {
9
+ console.log('The API property deprecated, Use require("wechat-api") instead');
10
+ return require('wechat-api');
11
+ }
12
+});
13
+
14
wechat.OAuth = require('./lib/oauth');
15
wechat.util = require('./lib/util');
16
module.exports = wechat;
0 commit comments