import { SyllableSDK } from "syllable-sdk";
const syllableSDK = new SyllableSDK({
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});
async function run() {
const result = await syllableSDK.channels.twilio.update({
id: 1,
name: "syllable-webchat",
config: {
accountSid: "AC123...",
authToken: "sometoken",
},
});
// Handle the result
console.log(result);
}
run();
{
"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 { SyllableSDK } from "syllable-sdk";
const syllableSDK = new SyllableSDK({
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});
async function run() {
const result = await syllableSDK.channels.twilio.update({
id: 1,
name: "syllable-webchat",
config: {
accountSid: "AC123...",
authToken: "sometoken",
},
});
// Handle the result
console.log(result);
}
run();
{
"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 updating a Twilio channel.
Successful Response
The response is of type object
.