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 endpoints:
- Generate JWT - /SonetelAuth/beta/oauth/token
- View and update account information - /account/{accountId}
- View and manage user accounts - /account/{accountId}/user
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.generateJWT();
await sonetel.getAccountInfo();
await sonetel.manageUserAccounts();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.