mirror of
https://github.com/politics-rewired/telnyx-10dlc.git
synced 2026-12-04 10:29:50 +00:00
TypeScript client for Telnyx 10DLC API.
- TypeScript 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| gen/api | ||
| scripts | ||
| .gitignore | ||
| .versionrc.js | ||
| CHANGELOG.md | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| yarn.lock | ||
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