JSPM

sonetel-node

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q17096F
  • License MIT

NodeJS library for Sonetel APIs

Package Exports

  • sonetel-node
  • sonetel-node/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sonetel-node) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Sonetel-Node

Sonetel-Node is a NodeJS library which provides a wrapper for using Sonetel's REST API's. It is written in TypeScript and can be installed using NPM.

This library supports the following functions:

  1. Generate tokens for API authentication
  2. View and update account information
  3. Manage phone numbers, user accounts, voice apps and call recordings
  4. Make phone calls
  5. View usage records
  6. Use the Text-to-speech service
  7. Personalize suggested answers provided by our AI

Installation

You can install this library using NPM by running the following commands:

npm i sonetel-node

Usage

First, you need to import Sonetel class from the library:

import { Sonetel } from "sonetel-node";

Then, you need to initialize an instance:

const sonetel = new Sonetel({
  username: "your-email-address",
  password: "your-sonetel-password",
});

Now, you can use any endpoint that is supported by this library:

await sonetel.generateToken();
await sonetel.getAccount();
await sonetel.listUsers();

Documentation

For detailed API documentation, please visit the Sonetel-Node documentation website.

Contributing

If you want to contribute to this project, please follow the Contributing Guidelines.

License

This code is licensed under the MIT License.