Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sms77-client

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sms77-client

Official API client for the Sms77.io SMS gateway

  • 2.6.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.6K
decreased by-13.41%
Maintainers
1
Weekly downloads
 
Created
Source

Sms77.io Logo

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

// 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(`My balance is: ${balance}`))
	.catch((error) => console.error(`Error while fetching: ${balance}`));

Tests

  1. git clone https://github.com/sms77io/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 send us an email.

Keywords

FAQs

Package last updated on 23 Feb 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc