Service Notification Resource
The Twilio Conversations Service Notification resource manages a set of settings to determine push notification Service Binding behavior for a specific Conversation Service.
ServiceNotification properties
Resource Properties in REST API format | |
---|---|
account_sid
|
The unique ID of the Account responsible for this configuration. |
chat_service_sid
|
The SID of the Conversation Service the Configuration applies to. |
new_message
|
The Push Notification configuration for New Messages. |
added_to_conversation
|
The Push Notification configuration for being added to a Conversation. |
removed_from_conversation
|
The Push Notification configuration for being removed from a Conversation. |
log_enabled
|
Weather the notification logging is enabled. |
url
|
An absolute API resource URL for this configuration. |
Fetch a ServiceNotification resource
https://conversations.twilio.com/v1/Services/{ChatServiceSid}/Configuration/Notifications
パラメーター
Parameters in REST API format | |
---|---|
chat_service_sid
Path
|
The SID of the Conversation Service the Configuration applies to. |
例 1
Update a ServiceNotification resource
https://conversations.twilio.com/v1/Services/{ChatServiceSid}/Configuration/Notifications
パラメーター
Parameters in REST API format | |
---|---|
chat_service_sid
Path
|
The SID of the Conversation Service the Configuration applies to. |
log_enabled
オプション
|
Weather the notification logging is enabled. |
new_message.enabled
オプション
|
Whether to send a notification when a new message is added to a conversation. The default is |
new_message.template
オプション
|
The template to use to create the notification text displayed when a new message is added to a conversation and |
new_message.sound
オプション
|
The name of the sound to play when a new message is added to a conversation and |
new_message.badge_count_enabled
オプション
|
Whether the new message badge is enabled. The default is |
added_to_conversation.enabled
オプション
|
Whether to send a notification when a participant is added to a conversation. The default is |
added_to_conversation.template
オプション
|
The template to use to create the notification text displayed when a participant is added to a conversation and |
added_to_conversation.sound
オプション
|
The name of the sound to play when a participant is added to a conversation and |
removed_from_conversation.enabled
オプション
|
Whether to send a notification to a user when they are removed from a conversation. The default is |
removed_from_conversation.template
オプション
|
The template to use to create the notification text displayed to a user when they are removed from a conversation and |
removed_from_conversation.sound
オプション
|
The name of the sound to play to a user when they are removed from a conversation and |
例 1
ヘルプが必要ですか?
誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。