Loading...
Loading...
Manage sub-accounts for reseller and enterprise scenarios. This skill provides Ruby SDK examples.
npx skill4agent add team-telnyx/telnyx-ext-agent-skills telnyx-account-management-rubygem install telnyxrequire "telnyx"
client = Telnyx::Client.new(
api_key: ENV["TELNYX_API_KEY"], # This is the default and can be omitted
)clientGET /managed_accountspage = client.managed_accounts.list
puts(page)POST /managed_accountsbusiness_nameemailmanaged_account_allow_custom_pricingpasswordrollup_billingmanaged_account = client.managed_accounts.create(business_name: "Larry's Cat Food Inc")
puts(managed_account)GET /managed_accounts/{id}managed_account = client.managed_accounts.retrieve("id")
puts(managed_account)PATCH /managed_accounts/{id}managed_account_allow_custom_pricingmanaged_account = client.managed_accounts.update("id")
puts(managed_account)POST /managed_accounts/{id}/actions/disableresponse = client.managed_accounts.actions.disable("id")
puts(response)POST /managed_accounts/{id}/actions/enablereenable_all_connectionsresponse = client.managed_accounts.actions.enable("id")
puts(response)PATCH /managed_accounts/{id}/update_global_channel_limitchannel_limitresponse = client.managed_accounts.update_global_channel_limit("id")
puts(response)GET /managed_accounts/allocatable_global_outbound_channelsresponse = client.managed_accounts.get_allocatable_global_outbound_channels
puts(response)