curl --request POST \
--url https://apimgmt.cometchat.io/apps/{appId}/extensions/sms-notification/v1/settings \
--header 'Content-Type: application/json' \
--header 'key: <key>' \
--header 'secret: <secret>' \
--data '{
"settings": {
"fromMobileNo": "+12345678",
"messageDelay": 60,
"twilioAccountSid": "ACfe6cccc530a5151a8eff415###",
"twilioAuthToken": "6928f0cadd4e62d4311234563ef3###",
"websiteURL": "www.somewebsite.com"
}
}'
{
"data": {
"statusCode": 200,
"success": true,
"responseTime": 3.061743974685669,
"body": {
"success": true
}
}
}
SMS Notification : Store new settings for SMS Notification extension
curl --request POST \
--url https://apimgmt.cometchat.io/apps/{appId}/extensions/sms-notification/v1/settings \
--header 'Content-Type: application/json' \
--header 'key: <key>' \
--header 'secret: <secret>' \
--data '{
"settings": {
"fromMobileNo": "+12345678",
"messageDelay": 60,
"twilioAccountSid": "ACfe6cccc530a5151a8eff415###",
"twilioAuthToken": "6928f0cadd4e62d4311234563ef3###",
"websiteURL": "www.somewebsite.com"
}
}'
{
"data": {
"statusCode": 200,
"success": true,
"responseTime": 3.061743974685669,
"body": {
"success": true
}
}
}
AppID in which the extension has to be enabled/disabled
Store SMS Notification Settings
The response is of type object
.