Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krung2/gabia-sms
This module is designed to make it more convenient to use the gabia sms service.
https://github.com/krung2/gabia-sms
gabia npmjs sms
Last synced: 14 days ago
JSON representation
This module is designed to make it more convenient to use the gabia sms service.
- Host: GitHub
- URL: https://github.com/krung2/gabia-sms
- Owner: krung2
- License: mit
- Created: 2021-07-07T03:18:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-12T12:34:41.000Z (over 3 years ago)
- Last Synced: 2024-10-09T13:18:36.723Z (2 months ago)
- Topics: gabia, npmjs, sms
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/node-gabia-sms
- Size: 21.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gabia-sms
## \*\* caution \*\*
> This module is not officially supported by Gabia
>this module is developing now. it can be unstable.
> this library is based on official gabiaSMS api guide
## before use this module
1. Sign Up for gabiaSMS Service
2. Register SendingIP
-> gabiaSMS admin -> default setting -> setting sending IP
3. Register Outgoing Information
-> gabiaSMS setting -> register outgoing information
## using module
### create module
```ts
const gabiaId: string = 'id used in gabiaSMS';
const gabiaAPIKEY: string = 'APIKEY issued by gabiaSMS';
const gabiaRef: string = 'Any unique string to find your result of send after';const gabiaSMSLib = gabiaSMS(gabiaId, gabiaAPIKEY, gabiaRef);
```### using SMS Service
```ts
const senderNum: string = '00011112222';
const receiverNum: string = '00011112222';
const message: string = 'test1234'; // Can't be an empty string. ''
// Don't go over 90 byte.
// if bigger than 90 byte, message will
// send sliceconst res: Promise =
gabiaSMSLib.sendSMS(senderNum, receiverNum, message);
```### using LMS Service
```ts
const senderNum: string = '00011112222';
const receiverNum: string = '00011112222';
const message: string = 'test1234'; // Can't be an empty string. ''
const subject: string = 'LMS test subject';const res: Promise = await gabiaSMSLib.sendLMS(
senderNum,
receiverNum,
message,
subject
);
```