メニュー

Expand
ページを評価:

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

        例 1
              
              
              
              
              ページを評価:

              ヘルプが必要ですか?

              誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。

                    
                    
                    

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

                    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