0.1.0 • Published 2 years ago

@rytass/sms-adapter-every8d v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago