Loading...
Loading...
Access SETI (Space Exploration Telecommunications Infrastructure) APIs. This skill provides Ruby SDK examples.
npx skill4agent add team-telnyx/skills telnyx-seti-rubygem install telnyxrequire "telnyx"
client = Telnyx::Client.new(
api_key: ENV["TELNYX_API_KEY"], # This is the default and can be omitted
)clientbegin
result = client.messages.send_(to: "+13125550001", from: "+13125550002", text: "Hello")
rescue Telnyx::Errors::APIConnectionError
puts "Network error — check connectivity and retry"
rescue Telnyx::Errors::RateLimitError
# 429: rate limited — wait and retry with exponential backoff
sleep(1) # Check Retry-After header for actual delay
rescue Telnyx::Errors::APIStatusError => e
puts "API error #{e.status}: #{e.message}"
if e.status == 422
puts "Validation error — check required fields and formats"
end
end401403404422429GET /10dlc/enum/{endpoint}response = client.messaging_10dlc.get_enum(:mno)
puts(response)GET /seti/black_box_test_resultsresponse = client.seti.retrieve_black_box_test_results
puts(response)black_box_testsproductrecord_type