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

somleng

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

somleng

A Somleng helper library

  • 4.18.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
74
increased by60.87%
Maintainers
1
Weekly downloads
 
Created
Source

somleng-node

NPM

Build

Node.js helper library for Somleng's REST API.

Note: This library wraps Twilio Node and adds support for Somleng.

Versioning

somleng-node follows Twilio Node versioning.

Installation

npm install somleng or yarn add somleng

Sample Usage

// Client Initialization
const accountSid = process.env.SOMLENG_ACCOUNT_SID;
const authToken = process.env.SOMLENG_AUTH_TOKEN;
const client = require('somleng')(accountSid, authToken);

// Create a call
client.calls
  .create({
      twiml: '<Response><Say>Ahoy, World!</Say></Response>',
      to: '+14155551212',
      from: '+15017122661'
    })
  .then(call => console.log(call.sid));

// List calls
client.calls.list({limit: 20})
            .then(calls => calls.forEach(c => console.log(c.sid)));

Environment Variables

somleng-node supports credential storage in environment variables. If no credentials are provided when instantiating the Somleng client (e.g., const client = require('somleng')();), the values in following env vars will be used: SOMLENG_ACCOUNT_SID and SOMLENG_AUTH_TOKEN.

License

The software is available as open source under the terms of the MIT License.

Keywords

FAQs

Package last updated on 22 Sep 2023

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