TypeScript client for Telnyx 10DLC API.
  • TypeScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2021-08-16 15:43:07 -04:00
.github/workflows feat: add swagger spec 2021-06-06 16:30:32 -04:00
gen/api feat: update API spec 2021-08-16 15:41:25 -04:00
scripts feat: update API spec 2021-08-16 15:41:25 -04:00
.gitignore initial commit 2021-06-06 13:44:46 -04:00
.versionrc.js chore: sign releases by default 2021-08-16 15:43:02 -04:00
CHANGELOG.md chore(release): 1.1.0 2021-08-16 15:43:07 -04:00
LICENSE initial commit 2021-06-06 13:44:46 -04:00
package.json chore(release): 1.1.0 2021-08-16 15:43:07 -04:00
README.md fix: fix import 2021-06-06 16:33:37 -04:00
tsconfig.json build(ts): expand exclude list 2021-06-06 20:23:04 -04:00
yarn.lock feat: add swagger spec 2021-06-06 16:30:32 -04:00

Telnyx 10 DLC Client

This library is autogenerated based on the Swagger spec available here: https://developers.telnyx.com/docs/v2/messaging/10dlc#api-access-and-documentation

Usage

import { OpenAPI, BrandsService } from '@rewired/telnyx-10dlc';

// Set Bearer token
OpenAPI.TOKEN = process.env.TELNYX_API_KEY;

// List 10DLC Brands
BrandsService.listBrandsBrandGet().then(console.log).catch(console.error);

Updating

# Update source URL
vi ./scripts/generate-api.ts

# Regenerate TS library
yarn generate

# Commit changes
git add scripts/ gen/
git commit -m "feat: update swagger spec"

# Cut release
yarn release
git push --follow-tags