メニュー

Expand
ページを評価:

Service Binding Resource

A Binding resource in Twilio Conversations represents a Push notification subscription for a User within their Service instance. Bindings are unique per Service instance, User identity, device, and notification channel (such as APNS, GCM, FCM).

ServiceBinding properties

Each Binding resource has the following properties:

Resource Properties in REST API format
sid
sid<BS> Not PII

このリソースを一意に識別する 34 文字の文字列です。

account_sid
sid<AC> Not PII

The unique ID of the Account responsible for this binding.

chat_service_sid
sid<IS> Not PII

The SID of the Conversation Service the Binding resource is associated with.

credential_sid
sid<CR> Not PII

The SID of the Credential for the binding. See push notification configuration for more info.

date_created
date_time<iso8601> Not PII

このリソースの作成された日付です。

date_updated
date_time<iso8601> Not PII

このリソースが最後に更新された日付です。

endpoint
文字列 PII MTL: 30 DAYS

The unique endpoint identifier for the Binding. The format of this value depends on the binding_type.

identity
文字列 PII MTL: 30 DAYS

The application-defined string that uniquely identifies the Conversation User within the Conversation Service. See access tokens for more info.

binding_type
enum:binding_type Not PII

The push technology to use for the Binding. Can be: apn, gcm, or fcm. See push notification configuration for more info.

message_types
string[] Not PII

The Conversation message types the binding is subscribed to.

url
url Not PII

An absolute API resource URL for this binding.

Fetch a ServiceBinding resource

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

The SID of the Conversation Service the Binding resource is associated with.

sid
Path
GET sid<BS> Not PII

このリソースを一意に識別する 34 文字の文字列です。

例 1
        
        
        
        

        Read multiple ServiceBinding resources

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

        The SID of the Conversation Service the Binding resource is associated with.

        binding_type
        オプション
        GET ienum:binding_type[] Not PII

        The push technology used by the Binding resources to read. Can be: apn, gcm, or fcm. See push notification configuration for more info.

        identity
        オプション
        GET string[] PII MTL: 30 DAYS

        The identity of a Conversation User this binding belongs to. See access tokens for more details.

        例 1
              
              
              
              

              Delete a ServiceBinding resource

              削除する
              https://conversations.twilio.com/v1/Services/{ChatServiceSid}/Bindings/{Sid}
              パラメーター
              Parameters in REST API format
              chat_service_sid
              Path
              削除する sid<IS> Not PII

              The SID of the Conversation Service to delete the Binding resource from.

              sid
              Path
              削除する sid<BS> Not PII

              The SID of the Binding resource to delete.

              例 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