1.0.1 • Published 11 months ago
sonetel-node v1.0.1
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-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.