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
|
このリソースを一意に識別する 34 文字の文字列です。 |
account_sid
|
The unique ID of the Account responsible for this binding. |
chat_service_sid
|
The SID of the Conversation Service the Binding resource is associated with. |
credential_sid
|
The SID of the Credential for the binding. See push notification configuration for more info. |
date_created
|
このリソースの作成された日付です。 |
date_updated
|
このリソースが最後に更新された日付です。 |
endpoint
|
The unique endpoint identifier for the Binding. The format of this value depends on the |
identity
|
The application-defined string that uniquely identifies the Conversation User within the Conversation Service. See access tokens for more info. |
binding_type
|
The push technology to use for the Binding. Can be: |
message_types
|
The Conversation message types the binding is subscribed to. |
url
|
An absolute API resource URL for this binding. |
Fetch a ServiceBinding resource
https://conversations.twilio.com/v1/Services/{ChatServiceSid}/Bindings/{Sid}
パラメーター
Parameters in REST API format | |
---|---|
chat_service_sid
Path
|
The SID of the Conversation Service the Binding resource is associated with. |
sid
Path
|
このリソースを一意に識別する 34 文字の文字列です。 |
例 1
Read multiple ServiceBinding resources
https://conversations.twilio.com/v1/Services/{ChatServiceSid}/Bindings
パラメーター
Parameters in REST API format | |
---|---|
chat_service_sid
Path
|
The SID of the Conversation Service the Binding resource is associated with. |
binding_type
オプション
|
The push technology used by the Binding resources to read. Can be: |
identity
オプション
|
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
|
The SID of the Conversation Service to delete the Binding resource from. |
sid
Path
|
The SID of the Binding resource to delete. |
例 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 Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.