README
sms-api-fetnet
Installation
npm install sms-api-fetnet -s
Usage
import sms from "sms-api-fetnet";
const payload={
SysId: "FXXXXXX",
Source: "01XXXXXXXXXXXXXXXXXXX",
Target: ["09XXXXXXXX","886OOOOOOOO"],
SmsBody: "Hello World",
Encode: "ASCII"
}
const smsServer='XX.XX.XX.XX:OOOO';
sms.getInstance().send(smsServer,payload).then(res=>{
console.log(res)
});
Parameter
This package only has one function sned(SMSSERVER,PAYLOAD,API_ADDRESS,PARAMETER)
.
SMSSERVER
: SMS server address.PAYLOAD
: It has five parameterSysId
,Source
,Target
,SmsBody
,Encode
.SysId
(required) : Your project name in SMS's server.Source
(required) : Your SMS platform service code.Target
(required) : You want to send SMS to which phone number.SmsBody
(required) : The SMS message.Encode
(optional) : Text Encode. ( Unicode, ASCII(default), Big5, UTF8)
API_ADDRESS
(optional) : Which api will be called. (default:/api/SmsSubmit)
License
ISC
Keyword
SMS