New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

instasent

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

instasent

A Nodejs wrapper library for Instasent's API

  • 0.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

Welcome to Instasent Node.js SDK. This repository contains Node.js SDK for Instasent's REST API.

Notice!

Verify product is currently deprecated and will be removed in the next release. The same functionality can be easily implemented by sending an SMS. If you need help migrating please contact us

Installation

The easiest way to install the SDK is via npm:

$ npm install instasent

Usage

Check the examples directory to see working examples of this SDK usage

Sending an SMS

var instasent = require('instasent')('my-token');

instasent.send_sms.create('Company', '+34666666666', 'test message', function (err, response) {
    if (err) {
        console.log(err.errors);
        return;
    }
    console.log(response);
});

If you want to send an Unicode SMS (i.e with 😀 emoji) you only need to replace send_sms call to send_sms_unicode

instasent.send_sms_unicode.create('Company', '+34666666666', 'Unicode test: ña éáíóú 😀', function (err, response) {
    if (err) {
        console.log(err.errors);
        return;
    }
    console.log(response);
});

Available actions

SMS
instasent.send_sms.create(sender, to, text, callback)
instasent.send_sms_unicode.create(sender, to, text, callback)
instasent.get_sms.read(page, per_page, callback)
instasent.get_sms_by_id.read(message_id, callback)

LOOKUP
instasent.do_lookup.create(to)
instasent.get_lookup_by_id.read(id)
instasent.get_lookups.read(page, per_page)

ACCOUNT
instasent.get_account_balance.read()

Full documentation

Full documentation of the API can be found at http://docs.instasent.com/

Getting help

If you need help installing or using the SDK, please contact Instasent Support at support@instasent.com

If you've instead found a bug in the library or have a feature request, go ahead and open an issue or pull request!

Keywords

FAQs

Package last updated on 16 Oct 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