Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: edits/style, syntax
Scripting_function


Panel
titleDescription

Return a list of Twilio accounts that have been configured in the Gateway.

Client permissions restrictions


Panel
titleSyntax

system.twilio.getAccounts()

  • Parameters

NoneNothing

  • Returns

List A list of configured Twilio accounts.

  • Scope

Gateway, Vision Client, Perspective Session

Panel
titleCode Examples
Code Block
languagepy
titleCode Snippet
# Retrieves a list of Twilio accounts and then iterates through the resulting list.
# Call system.twilio.getAccounts() and store the returned list into a variable.
twilioAccounts = system.twilio.getAccounts()

# Iterate through the list of accounts.
for account in twilioAccounts:

	# Prints the account name to the console, but could do something more useful with each account.
	print account
Panel
titleKeywords

system twilio getAccounts, twilio.getAccounts