0.2.0 • Published 9 months ago

@rytass/sms-adapter-every8d v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Rytass Utils - SMS (Every8d)

Features

  • Send SMS
  • Batch send SMS
  • Query credits

Getting Started

Send SMS

import { SMSServiceEvery8D } from '@rytass/sms-adapter-every8d';

const USER = 'user';
const PASS = 'pass';

const smsService = new SMSServiceEvery8D({
  username: USER,
  password: PASS,
  onlyTaiwanMobileNumber: true, // Block oversea phone number
});

// Single Request
smsService.send({
  mobile: '0969999999',
  text: 'Testing',
});

// Batch Request
smsService.send([{
  mobileList: ['0969999999', '0969999998'],
  text: 'Testing2',
});

// Batch Request (Difference message)
smsService.send([{
  mobile: '0969999999',
  text: 'Testing1',
}, {
  mobile: '0969999998',
  text: 'Testing2',
}]);
0.2.0

9 months ago

0.1.0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago