Files
chat/server/test/demo/getui/index.ts
2026-04-25 16:36:34 +08:00

14 lines
341 B
TypeScript

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);
});