2.0.6 • Published 5 years ago

sms-api-fetnet v2.0.6

Weekly downloads
38
License
ISC
Repository
github
Last release
5 years ago

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 parameter SysId,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

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.4

5 years ago