![Sms77.io Logo Sms77.io Logo](https://www.sms77.io/wp-content/uploads/2019/07/sms77-Logo-400x79.png)
Official JavaScript API Client for the Sms77.io SMS Gateway
Installation
This library relies on the global fetch API. To use this library with
Node.js, node-fetch is required.
For compatibility with Node.js versions < 12, please also install
the globalThis polyfill.
Installation using NPM
npm install sms77-client
Installation using Yarn
yarn add sms77-client
Browser
<script src="https://unpkg.com/browse/sms77-client/dist/Sms77Client.umd.js"></script>
Example
new Sms77Client("MY_SUPER_SECRET_SMS77_IO_API_KEY!")
.balance()
.then(balance => console.log(`Current balance: ${balance}`))
.catch(console.error);
Tests
git clone https://github.com/sms77io/js-client
cd js-client && npm install
SMS77_API_KEY=InsertSms77ApiKey npm run test
Set SMS77_LIVE_TEST=1
for live tests performing actual HTTP requests.
Set SMS77_DEBUG=1
for details printed to stdout
.
Support
Need help? Feel free to contact us.
![MIT](https://img.shields.io/badge/License-MIT-teal.svg)