Establishing a Connection
Configure a Connection Profile
From the CData ribbon, click Get Data and select From Twilio connection/s to launch the CData Query window. To setup a new connection, you will have to click the New Twilio Connection button. Here you can set the connection settings, test the connection, and save the connection profile.
Connecting to Twilio
You can authenticate to Twilio using either an Auth Token or an API key.Auth Token
You can authenticate to Twilio using an Auth Token and an Account SID.
Open the Twilio Console Dashboard, navigate to the Account Info section, and set these connection properties:
- AccountSID: the value of the Account SID field.
- AuthToken: the value of the Auth Token field. Click Show to unhide it.
API Key
To authenticate to Twilio using an API key:
- Open the Twilio Console Dashboard and click Account Info > API Keys > Go to API Keys. The API keys & tokens page opens.
- Click Create API key. The Create new API key menu opens.
- Set Friendly name to a name you want to use to refer to the token.
- Set Region to the region in which you want the API key to apply.
- Set Key type to your desired key type. The options include:
- Standard - Grants access to all Twilio API features except for managing API Keys, Account Configuration, and Subaccounts.
- Main - Grants access to the same features as the Standard key type, with the added ability to manage API Keys, Account Configuration, and Subaccounts.
- Restricted - Allows granular access to a subset of the Twilio API features that the standard APIKey grants. If you select this option, you must manually specify the permissions that the token grants.
- Click Create. This opens the Copy secret key page.
- Note the values of the SID and Secret fields. The latter is only shown once, so make sure you copy it before leaving this page.
- Set the following connection properties:
- AuthScheme: APIKey
- AccountSID: the value of the Account SID field in the Account Info section of the Twilio Console Dashboard.
- APIKeySID: the SID of the API key you generated earlier, which you noted in step 4.
- APIKeySecret: the API key secret of the API key you generated earlier, which you noted in step 4.
Connection Properties
The Connection properties describe the various options that can be used to establish a connection.
Managing Connections
After successfully authenticating to Twilio you will be able to customize the data you are importing. To learn more about this, see Managing Connections.
See Also
- Querying Data: Use the data selection wizard to pull data into a spreadsheet. You can also configure scheduled data refresh here.
- Using the Excel Add-In: Find other ways to interact with Twilio data, such as using the available CData Excel Functions.