Establishing a Connection
The objects available within our connector are accessible from the "cdata.twilio" module. To use the module's objects directly:
- Import the module as follows:
import cdata.twilio as mod
- To establish a connection string, call the connect() method from the connector object using an appropriate connection string, such as:
mod.connect("AccountSid=MyAccountSid;AuthToken=MyAuthToken;")
Use the AccountSID and AuthToken connection properties to access data from your account. You obtain your live credentials on your Twilio account dashboard. Click Account -> Account Settings to obtain your test credentials.