sms-api-fetnet
TypeScript icon, indicating that this package has built-in type declarations

2.0.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i sms-api-fetnet

Weekly Downloads

1

Version

2.0.6

License

ISC

Unpacked Size

20.6 kB

Total Files

24

Last publish

Collaborators

  • hohshen