User Binding Resource
The User Binding resource provides access to Binding resources that is scoped to a single User.
UserBinding properties
Each User Binding resource contains these properties.
Names in REST API format | |
---|---|
sid
|
The unique string that we created to identify the User Binding resource. |
account_sid
|
The SID of the Account that created the User Binding resource. |
service_sid
|
The SID of the Service the User Binding resource is associated with. |
date_created
|
The date and time in GMT when the resource was created specified in ISO 8601 format. |
date_updated
|
The date and time in GMT when the resource was last updated specified in ISO 8601 format. |
endpoint
|
The unique endpoint identifier for the User Binding. The format of the value depends on the |
identity
|
The application-defined string that uniquely identifies the resource's User within the Service. See access tokens for more info. |
user_sid
|
The SID of the User with the User Binding resource. See push notification configuration for more info. |
credential_sid
|
The SID of the Credential for the binding. See push notification configuration for more info. |
binding_type
|
The push technology to use for the User Binding. Can be: |
message_types
|
The Programmable Chat message types the binding is subscribed to. |
url
|
The absolute URL of the User Binding resource. |
Fetch a User Binding resource
https://chat.twilio.com/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}
The {UserSid}
value can be either the sid
or the identity
of the User resource to fetch the User Binding resource from.
パラメーター
Names in REST API format | |
---|---|
service_sid
Path
|
The SID of the Service to fetch the User Binding resource from. |
user_sid
Path
|
The SID of the User with the User Binding resource to fetch. See push notification configuration for more info. |
sid
Path
|
The SID of the User Binding resource to fetch. |
例 1
Read multiple UserBinding resources
https://chat.twilio.com/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings
The {UserSid}
value can be either the sid
or the identity
of the User resource to read User Binding resources from.
パラメーター
Names in REST API format | |
---|---|
service_sid
Path
|
The SID of the Service to read the User Binding resources from. |
user_sid
Path
|
The SID of the User with the User Binding resources to read. See push notification configuration for more info. |
binding_type
オプション
|
The push technology used by the User Binding resources to read. Can be: |
例 1
Delete a User Binding resource
https://chat.twilio.com/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}
The {UserSid}
value can be either the sid
or the identity
of the User resource to delete the User Channel resource from.
パラメーター
Names in REST API format | |
---|---|
service_sid
Path
|
The SID of the Service to delete the User Binding resource from. |
user_sid
Path
|
The SID of the User with the User Binding resources to delete. See push notification configuration for more info. |
sid
Path
|
The SID of the User Binding resource to delete. |
例 1
ヘルプが必要ですか?
誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。