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

API client for the Sms77.io SMS gateway

  • 2.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3K
decreased by-9.05%
Maintainers
1
Weekly downloads
 
Created
Source

Sms77.io Logo

JavaScript API Client for the Sms77.io SMS Gateway

Installation

This library relies on the the global fetch API. In order to to use it with NodeJS u need to install node-fetch. For NodeJS versions < 12 use the globalThis polyfill.

Yarn yarn add sms77-client node-fetch

NPM npm install sms77-client node-fetch

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 Client('MY_SUPER_SECRET_SMS77_IO_API_KEY!')
.balance()
.then(balance => console.log(`My balance is: ${balance}`))
.catch(error => console.error(`Error while fetching: ${balance}`));

Keywords

FAQs

Package last updated on 20 Nov 2020

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