Socket
Socket
Sign inDemoInstall

sms77-client

Package Overview
Dependencies
10
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sms77-client

Official API client for seven


Version published
Weekly downloads
634
decreased by-54.39%
Maintainers
1
Install size
6.74 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 25 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc