优化
This commit is contained in:
13
server/test/demo/getui/index.ts
Normal file
13
server/test/demo/getui/index.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import * as dotenv from 'dotenv';
|
||||
dotenv.config();
|
||||
import { GetuiClient } from '../../../plugins/com.msgbyte.getui/lib/GetuiClient';
|
||||
|
||||
const client = new GetuiClient(
|
||||
process.env.GETUI_APPID,
|
||||
process.env.GETUI_APPKEY,
|
||||
process.env.GETUI_MASTERSECRET
|
||||
);
|
||||
|
||||
client.allPush('title', 'body', {}).then((res) => {
|
||||
console.log('res', res);
|
||||
});
|
||||
Reference in New Issue
Block a user