telnyx-10dlc-go
Solid10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.
AI & Automation 190 stars
20 forks Updated today MIT
Install
Quality Score: 87/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
# Telnyx 10DLC - Go
## Installation
```bash
go get github.com/team-telnyx/telnyx-go
```
## Setup
```go
import (
"context"
"fmt"
"os"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
client := telnyx.NewClient(
option.WithAPIKey(os.Getenv("TELNYX_API_KEY")),
)
```
All examples below assume `client` is already initialized as shown above.
## Error Handling
All API calls can fail with network errors, rate limits (429), validation errors (422),
or authentication errors (401). Always handle errors in production code:
```go
import "errors"
telnyxBrand, err := client.Messaging10dlc.Brand.New(context.Background(), telnyx.Messaging10dlcBrandNewParams{
Country: "US",
DisplayName: "ABC Mobile",
Email: "support@example.com",
EntityType: telnyx.EntityTypePrivateProfit,
Vertical: telnyx.VerticalTechnology,
})
if err != nil {
var apiErr *telnyx.Error
if errors.As(err, &apiErr) {
switch apiErr.StatusCode {
case 422:
fmt.Println("Validation error — check required fields and formats")
case 429:
fmt.Println("Rate limited, retrying...")
default:
fmt.Printf("API error %d: %s\n", apiErr.StatusCode, apiErr.Error())
}
} else {
fmt.Println("Network error — check connectivity and retry")
}
}
```
Common error codes: `401` invalid API key, `403` insufficient permissions,
`404` resource not found, `422` validation error ...
Details
- Author
- team-telnyx
- Repository
- team-telnyx/ai
- Created
- 5 months ago
- Last Updated
- today
- Language
- TypeScript
- License
- MIT
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
telnyx-10dlc-javascript
10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.
190 Updated today
team-telnyx AI & Automation Solid
telnyx-10dlc-java
10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.
190 Updated today
team-telnyx AI & Automation Solid
telnyx-10dlc-python
10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.
190 Updated today
team-telnyx