mobily-ws
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Build Status

Mobily Ws

A Node.js client to communicate with mobily.ws API

Installation

npm install mobily-ws --save

Usage

Javascript

const mobilyWs = require('mobily-ws');

const client = mobilyWs('YOUR API KEY', 'SENDER NAME');

// Extra options to send to the api.
const options = {
    dateSend: '01/01/2020',
    timeSend: '15:30:00',
};

client.sendSMS('Thank you for your business', ['966511111111', '966522222222'], options)
    .then(function (response) {
        console.log(response)
    });

TypeScript/ES6

import mobilyWs from 'mobily-ws';

const client = mobilyWs('YOUR API KEY', 'SENDER NAME');

// Extra options to send to the api.
const options = {
    dateSend: '01/01/2020',
    timeSend: '15:30:00',
};

client.sendSMS('Thank you for your business', ['966511111111', '966522222222'], options)
    .then((response) => {
        console.log(response)
    });

Test

npm run test

Readme

Keywords

Package Sidebar

Install

npm i mobily-ws

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

15 kB

Total Files

12

Last publish

Collaborators

  • alhoqbani