imaegoo / pushoo

💬 即时消息推送 Node SDK
https://pushoo.js.org
MIT License
108 stars 7 forks source link

wxpusher uids如何調用 #23

Open mk2leo opened 1 year ago

mk2leo commented 1 year ago

請問如何傳入uids 參數..使用py 和JS 代碼

funnyzak commented 1 year ago

像这样:

  pushoo
    .notice('wxpusher', {
      content:
        'hello world, this is a test message from pushoo, please ignore it.',
      token: 'AT_P2345678',
      options: {
        wxpusher: {
          uids: ['UID_1', 'UID_2'],
        },
      },
    })
    .then((rlt) => {
      console.log(`Pushoo notice success: ${JSON.stringify(rlt)}`);
    });