epochta-pullcrm
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

#e_pochta This is an API wrapper for online SMS service E-pochta v3.0.

##Installation

$ npm install e-pochta-sms-api

##Usage

let SMSAPI = require("e-pochta-sms-api").SMSAPI;
let Stat = require("e-pochta-sms-api").Stat;
let gatewayOptions = {
    publicKey: "publicKey",
    privateKey: "privateKey",
    url: "http://atompark.com/api/sms/"
};
let gateway = new SMSAPI(gatewayOptions);
let stat = new Stat(gateway);

# send sms
let resultPromise = stat.send_sms({
		# read the api to provide correct arguments
		'sender': 'Name',
		'text': 'Hello World!',
		'phone': '71234567890',
		'datetime': '',
		'sms_lifetime': 0
	});
resultPromise.then((resp) => {
    console.log(resp);
})
.catch((err) => {
    console.log(err);
})

Readme

Keywords

Package Sidebar

Install

npm i epochta-pullcrm

Weekly Downloads

0

Version

0.0.6

License

ISC

Unpacked Size

19.1 kB

Total Files

8

Last publish

Collaborators

  • inum