wechaty-puppet-official-account
Version:
Wechaty Puppet for WeChat Official Accounts
23 lines • 811 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getOaOptions = void 0;
/**
* lizhuohuan 的接口测试号
*
* https://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login
* https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/Requesting_an_API_Test_Account.html
*/
const config_js_1 = require("../../src/config.js");
const getOaOptions = () => {
const options = (0, config_js_1.envOptions)();
if (!options.appId || !options.appSecret || !options.token) {
throw new Error('getOaOptions(): please check your environment variables!');
}
return {
appId: options.appId,
appSecret: options.appSecret,
token: options.token,
};
};
exports.getOaOptions = getOaOptions;
//# sourceMappingURL=oa-options.js.map