メニュー

Expand
ページを評価:

Service-Scoped 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.

APIのベースURL

リファレンスドキュメントの URL はすべて、次のベース URL を使用しています。

https://conversations.twilio.com/v1

For Conversations applications that build on more than one Conversation Service instance, you will need to specify the Conversation Service SID in the REST API call:

GET /v1/Services/ISxx/Conversations/CHxx/Messages

ServiceNotification properties

Resource Properties in REST API format
account_sid
sid<AC> Not PII

The unique ID of the Account responsible for this configuration.

chat_service_sid
sid<IS> Not PII

The SID of the Conversation Service the Configuration applies to.

new_message
オブジェクト Not PII

The Push Notification configuration for New Messages.

added_to_conversation
オブジェクト Not PII

The Push Notification configuration for being added to a Conversation.

removed_from_conversation
オブジェクト Not PII

The Push Notification configuration for being removed from a Conversation.

log_enabled
boolean Not PII

Weather the notification logging is enabled.

url
url Not PII

An absolute API resource URL for this configuration.

Fetch a ServiceNotification resource

GET
https://conversations.twilio.com/v1/Services/{ChatServiceSid}/Configuration/Notifications
パラメーター
Parameters in REST API format
chat_service_sid
Path
GET sid<IS> Not PII

The SID of the Conversation Service the Configuration applies to.

例 1
        
        
        

        Update a ServiceNotification resource

        post
        https://conversations.twilio.com/v1/Services/{ChatServiceSid}/Configuration/Notifications
        パラメーター
        Parameters in REST API format
        chat_service_sid
        Path
        post sid<IS> Not PII

        The SID of the Conversation Service the Configuration applies to.

        log_enabled
        オプション
        post boolean Not PII

        Weather the notification logging is enabled.

        new_message.enabled
        オプション
        post boolean Not PII

        Whether to send a notification when a new message is added to a conversation. The default is false.

        new_message.template
        オプション
        post 文字列 Not PII

        The template to use to create the notification text displayed when a new message is added to a conversation and new_message.enabled is true.

        new_message.sound
        オプション
        post 文字列 Not PII

        The name of the sound to play when a new message is added to a conversation and new_message.enabled is true.

        new_message.badge_count_enabled
        オプション
        post boolean Not PII

        Whether the new message badge is enabled. The default is false.

        added_to_conversation.enabled
        オプション
        post boolean Not PII

        Whether to send a notification when a participant is added to a conversation. The default is false.

        added_to_conversation.template
        オプション
        post 文字列 Not PII

        The template to use to create the notification text displayed when a participant is added to a conversation and added_to_conversation.enabled is true.

        added_to_conversation.sound
        オプション
        post 文字列 Not PII

        The name of the sound to play when a participant is added to a conversation and added_to_conversation.enabled is true.

        removed_from_conversation.enabled
        オプション
        post boolean Not PII

        Whether to send a notification to a user when they are removed from a conversation. The default is false.

        removed_from_conversation.template
        オプション
        post 文字列 Not PII

        The template to use to create the notification text displayed to a user when they are removed from a conversation and removed_from_conversation.enabled is true.

        removed_from_conversation.sound
        オプション
        post 文字列 Not PII

        The name of the sound to play to a user when they are removed from a conversation and removed_from_conversation.enabled is true.

        new_message.with_media.enabled
        オプション
        post boolean Not PII

        Whether to send a notification when a new message with media/file attachments is added to a conversation. The default is false.

        new_message.with_media.template
        オプション
        post 文字列 Not PII

        The template to use to create the notification text displayed when a new message with media/file attachments is added to a conversation and new_message.attachments.enabled is true.

        例 1
              
              
              
              ページを評価:

              ヘルプが必要ですか?

              We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Community Forums or browsing the Twilio tag on Stack Overflow.

                    
                    
                    

                    フィードバックくださりありがとうございます!

                    We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

                    Sending your feedback...
                    🎉 Thank you for your feedback!
                    Something went wrong. Please try again.

                    Thanks for your feedback!

                    Refer us and get $10 in 3 simple steps!

                    ステップ1

                    Get link

                    Get a free personal referral link here

                    ステップ2:

                    Give $10

                    Your user signs up and upgrade using link

                    ステップ3

                    Get $10

                    1,250 free SMSes
                    OR 1,000 free voice mins
                    OR 12,000 chats
                    OR more