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:
- Generate tokens for API authentication
- View and update account information
- Manage phone numbers, user accounts, voice apps and call recordings
- Make phone calls
- View usage records
- Use the Text-to-speech service
- Personalize suggested answers provided by our AI
Installation
You can install this library using NPM by running the following commands:
npm i sonetel-nodeUsage
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.