Socket
Socket
Sign inDemoInstall

somleng

Package Overview
Dependencies
1
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    somleng

A Somleng helper library


Version published
Maintainers
1
Created

Changelog

Source

5.0.4 (2024-04-19)

Features

  • bump twilio from 5.0.3 to 5.0.4 (c4199b1)

Readme

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

Last updated on 19 Apr 2024

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