Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now

メニュー

Expand
Rate this page:

Thanks for rating this page!

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

Binding Resource

A Binding resource of Programmable Chat 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).

Binding properties

Each Binding resource contains these properties.

Names in Node.js format
sid
sid<BS> Not PII

The unique string that we created to identify the Binding resource.

accountSid
sid<AC> Not PII

The SID of the Account that created the Binding resource.

serviceSid
sid<IS> Not PII

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

dateCreated
date_time<iso8601> Not PII

The date and time in GMT when the resource was created specified in ISO 8601 format.

dateUpdated
date_time<iso8601> Not PII

The date and time in GMT when the resource was last updated specified in ISO 8601 format.

endpoint
文字列 PII MTL: 120 DAYS

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

identity
文字列 PII MTL: 120 DAYS

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

credentialSid
sid<CR> Not PII

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

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

messageTypes
string[] Not PII

The Programmable Chat message types the binding is subscribed to.

url
url Not PII

The absolute URL of the Binding resource.

links
uri_map Not PII

The absolute URLs of the Binding's User.

Fetch a Binding resource

GET
https://chat.twilio.com/v2/Services/{ServiceSid}/Bindings/{Sid}
パラメーター
Names in None format
service_sid
必須
GET sid<IS> Not PII

The SID of the Service to fetch the Binding resource from.

sid
必須
GET sid<BS> Not PII

The SID of the Binding resource to fetch.

例 1
        
        
        
        

        Read multiple Binding resources

        GET
        https://chat.twilio.com/v2/Services/{ServiceSid}/Bindings
        パラメーター
        Names in None format
        service_sid
        必須
        GET sid<IS> Not PII

        The SID of the Service to read the Binding resources from.

        binding_type
        オプション
        GET enum: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: 120 DAYS

        The User's identity value of the resources to read. See access tokens for more details.

        例 1
              
              
              
              

              Delete a Binding resource

              削除する
              https://chat.twilio.com/v2/Services/{ServiceSid}/Bindings/{Sid}
              パラメーター
              Names in None format
              service_sid
              必須
              削除する sid<IS> Not PII

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

              sid
              必須
              削除する sid<BS> Not PII

              The SID of the Binding resource to delete.

              例 1
                    
                    
                    
                    
                    Rate this page:

                    ヘルプが必要ですか?

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