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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.65latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.65
2.0.52
2.0.43
2.0.33
2.0.21
2.0.11
2.0.01
1.1.42

Package Sidebar

Install

npm i sms-api-fetnet

Weekly Downloads

15

Version

2.0.6

License

ISC

Unpacked Size

20.6 kB

Total Files

24

Last publish

Collaborators

  • hohshen