Documentation
README
Telnyx 10DLC - Ruby
Installation
gem install telnyx
Setup
require "telnyx"
client = Telnyx::Client.new(
api_key: ENV["TELNYX_API_KEY"], # This is the default and can be omitted
)
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:
telnyx_brand = client.messaging_10dlc.brand.create(
country: "US",
display_name: "ABC Mobile",
email: "support@example.com",
entity_type: :PRIVATE_PROFIT,
vertical: :TECHNOLOGY
)
puts(telnyx_brand)
This is the opening of the README. Read the full README on GitHub.