import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.channels.twilio.create(request={
"name": "syllable-webchat",
"config": {
"account_sid": "AC123...",
"auth_token": "sometoken",
},
})
# Handle response
print(res)
{
"name": "syllable-webchat",
"channel_service": "webchat",
"supported_modes": "chat,voice",
"is_system_channel": false,
"id": 123,
"config": {
"telephony": {
"overall_input_timeout": 20,
"pre_input_timeout": 1.2
}
}
}
import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.channels.twilio.create(request={
"name": "syllable-webchat",
"config": {
"account_sid": "AC123...",
"auth_token": "sometoken",
},
})
# Handle response
print(res)
{
"name": "syllable-webchat",
"channel_service": "webchat",
"supported_modes": "chat,voice",
"is_system_channel": false,
"id": 123,
"config": {
"telephony": {
"overall_input_timeout": 20,
"pre_input_timeout": 1.2
}
}
}
Request model for creating a Twilio channel.
Successful Response
The response is of type object
.