0.0.11 • Published 3 years ago

node-gabia-sms v0.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

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

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 slice

const res: Promise<IDefaultResData> =
  gabiaSMSLib.sendSMS(senderNum, receiverNum, message);

using LMS Service

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<IDefaultResData> = await gabiaSMSLib.sendLMS(
  senderNum,
  receiverNum,
  message,
  subject
);
0.0.10

3 years ago

0.0.11

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.6

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

1.0.0

3 years ago