ec
epochta-client
npm i epochta-client
ec

epochta-client

ePochta SMS API (v. 3.0) Client

by Anton Starodubtsev

0.0.1 (see all)License:ISCTypeScript:Not FoundCategories:Vanilla JavaScript SMS API
npm i epochta-client
Readme

ePochta SMS API (v. 3.0) Client

Build Status Coverage Status

Installation

npm install epochta-client

Usage

const epocthaAPI = require('epochta-client');

const keys = {
  publicKey: 'your public API key',
  privateKey: 'your private API key',
};

const client = epocthaAPI(keys);

client.sendSMS({
  sender: 'senderName',
  text: 'Some text',
  phone: 'some phone number'
})
  .then(function(result) {
    // process result
  })
  .catch(function(error) {
    // process error
  });

Docs

For full module documentation see: https://pekc83.github.io/epochta-client/

API specification could be found here: https://www.epochta.ru/products/sms/v3.php

Tests

npm test

Downloads/wk

6

GitHub Stars

1

LAST COMMIT

5yrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

0

OPEN PRs

2
VersionTagPublished
0.0.1
latest
5yrs ago
No tutorials found
Add a tutorial