caioagiani / mobizon-node

Biblioteca NodeJS para trabalhar com os serviços Mobizon API
https://mobizon.com.br
MIT License
20 stars 5 forks source link

feat(sms): add params to send SMS scheduled #51

Closed caioagiani closed 2 years ago

caioagiani commented 2 years ago
  /** Enviar SMS agendado */
  const sendSmsScheduled = await mobizon.sendSms({
    recipient: process.env.NUMBER,
    from: '',
    text: 'SMS sent by Mobizon (scheduled).',
    params: {
      name: 'SMS Scheduled',
      deferredToTs: '2022-01-26 01:00:00',
    },
  });

  console.log(sendSmsScheduled);