system.twilio.getAccountsDataset
This function is used in Python Scripting.
Descriptionβ
Returns a list of Twilio account names that have been configured in the Gateway as a single-column Dataset.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.twilio.getAccountsDataset()
Parametersβ
Nothing
Returnsβ
Dataset - A list of configured Twilio accounts as a single-column Dataset.
Scopeβ
Gateway, Vision Client, Perspective Session
Code Examplesβ
Code Snippet
# Retrieves a list of Twilio accounts and then passes the data to a Table component's data property.
# Call system.twilio.getAccountsDataset() and store the returned list into a variable.
twilioAccounts = system.twilio.getAccountsDataset()
# Pass the dataset to a Table component. The Table is located in the same container as the
# component calling this script.
event.source.parent.getComponent('Table').data = twilioAccounts