telnyx-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Telnyx Node.js API Library

Disclaimer

This is not the official Telnyx package, but it has been generated using the Telnyx OpenAPI spec to get a typescript first version of their APIs.

Installation

Install the package with:

npm install telnyx-api --save

Usage

The package needs to be configured with your account's API key which is available in your the Telnyx Mission Control Portal. Require it with the key's value:

import { Configuration, MessagingProfilesApi } from 'telnyx-api'

const config = new Configuration({
  accessToken: 'KEY123456...',
})

const messagingProfiles = new MessagingProfilesApi(config);
 
const result = messagingProfiles.createMessagingProfile({
  name: 'Summer Campaign',
  whitelisted_destinations: [],
})

console.log(result)

Readme

Keywords

none

Package Sidebar

Install

npm i telnyx-api

Weekly Downloads

1,036

Version

1.0.3

License

MIT

Unpacked Size

7.28 MB

Total Files

13

Last publish

Collaborators

  • hubastard