2.27.0 • Published 6 months ago

sms77-client v2.27.0

Weekly downloads
154
License
MIT
Repository
github
Last release
6 months ago

npm.io

Official JavaScript API Client for sms77

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.

Via NPM

npm install sms77-client

Via Yarn

yarn add sms77-client

Browser

<script src='https://unpkg.com/browse/sms77-client/dist/Sms77Client.umd.js'></script>

Example

// const globalThis = require('globalthis')(); // uncomment if NodeJS < NodeJS versions < 12
// globalThis.fetch = require('node-fetch').default; // uncomment in NodeJS environments
// const Sms77Client = require('sms77-client'); // uncomment in NodeJS environments

new Sms77Client('MY_SUPER_SECRET_SMS77_IO_API_KEY!')
	.balance()
	.then(balance => console.log(`Current balance: ${balance}`))
	.catch(console.error);

Tests

  1. git clone https://github.com/seven-io/js-client
  2. cd js-client && npm install
  3. 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

2.27.0

6 months ago

2.26.0

10 months ago

2.25.0

1 year ago

2.24.0

2 years ago

2.23.0

2 years ago

2.19.0

2 years ago

2.18.0

2 years ago

2.21.0

2 years ago

2.20.0

2 years ago

2.22.0

2 years ago

2.17.0

2 years ago

2.15.0

2 years ago

2.16.0

2 years ago

2.14.0

2 years ago

2.12.1

3 years ago

2.12.0

3 years ago

2.11.0

3 years ago

2.11.1

3 years ago

2.10.0

3 years ago

2.9.0

3 years ago

2.8.0

3 years ago

2.7.0

3 years ago

2.6.0

3 years ago

2.5.0

3 years ago

2.5.1

3 years ago

2.4.2

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.9.2

4 years ago

1.9.1

4 years ago

1.9.0

4 years ago

1.8.4

4 years ago

1.8.3

4 years ago

1.8.2

4 years ago

1.8.1

4 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago