github.com/twilio/twilio-go@v1.20.1/rest/conversations/v1/docs/ServicesBindingsApi.md (about) 1 # ServicesBindingsApi 2 3 All URIs are relative to *https://conversations.twilio.com* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**DeleteServiceBinding**](ServicesBindingsApi.md#DeleteServiceBinding) | **Delete** /v1/Services/{ChatServiceSid}/Bindings/{Sid} | 8 [**FetchServiceBinding**](ServicesBindingsApi.md#FetchServiceBinding) | **Get** /v1/Services/{ChatServiceSid}/Bindings/{Sid} | 9 [**ListServiceBinding**](ServicesBindingsApi.md#ListServiceBinding) | **Get** /v1/Services/{ChatServiceSid}/Bindings | 10 11 12 13 ## DeleteServiceBinding 14 15 > DeleteServiceBinding(ctx, ChatServiceSidSid) 16 17 18 19 Remove a push notification binding from the conversation service 20 21 ### Path Parameters 22 23 24 Name | Type | Description 25 ------------- | ------------- | ------------- 26 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 27 **ChatServiceSid** | **string** | The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the Binding resource from. 28 **Sid** | **string** | The SID of the Binding resource to delete. 29 30 ### Other Parameters 31 32 Other parameters are passed through a pointer to a DeleteServiceBindingParams struct 33 34 35 Name | Type | Description 36 ------------- | ------------- | ------------- 37 38 ### Return type 39 40 (empty response body) 41 42 ### Authorization 43 44 [accountSid_authToken](../README.md#accountSid_authToken) 45 46 ### HTTP request headers 47 48 - **Content-Type**: Not defined 49 - **Accept**: Not defined 50 51 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 52 [[Back to Model list]](../README.md#documentation-for-models) 53 [[Back to README]](../README.md) 54 55 56 ## FetchServiceBinding 57 58 > ConversationsV1ServiceBinding FetchServiceBinding(ctx, ChatServiceSidSid) 59 60 61 62 Fetch a push notification binding from the conversation service 63 64 ### Path Parameters 65 66 67 Name | Type | Description 68 ------------- | ------------- | ------------- 69 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 70 **ChatServiceSid** | **string** | The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with. 71 **Sid** | **string** | A 34 character string that uniquely identifies this resource. 72 73 ### Other Parameters 74 75 Other parameters are passed through a pointer to a FetchServiceBindingParams struct 76 77 78 Name | Type | Description 79 ------------- | ------------- | ------------- 80 81 ### Return type 82 83 [**ConversationsV1ServiceBinding**](ConversationsV1ServiceBinding.md) 84 85 ### Authorization 86 87 [accountSid_authToken](../README.md#accountSid_authToken) 88 89 ### HTTP request headers 90 91 - **Content-Type**: Not defined 92 - **Accept**: application/json 93 94 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 95 [[Back to Model list]](../README.md#documentation-for-models) 96 [[Back to README]](../README.md) 97 98 99 ## ListServiceBinding 100 101 > []ConversationsV1ServiceBinding ListServiceBinding(ctx, ChatServiceSidoptional) 102 103 104 105 Retrieve a list of all push notification bindings in the conversation service 106 107 ### Path Parameters 108 109 110 Name | Type | Description 111 ------------- | ------------- | ------------- 112 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 113 **ChatServiceSid** | **string** | The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with. 114 115 ### Other Parameters 116 117 Other parameters are passed through a pointer to a ListServiceBindingParams struct 118 119 120 Name | Type | Description 121 ------------- | ------------- | ------------- 122 **BindingType** | [**[]ServiceBindingEnumBindingType**](ServiceBindingEnumBindingType.md) | The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. 123 **Identity** | **[]string** | The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details. 124 **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. 125 **Limit** | **int** | Max number of records to return. 126 127 ### Return type 128 129 [**[]ConversationsV1ServiceBinding**](ConversationsV1ServiceBinding.md) 130 131 ### Authorization 132 133 [accountSid_authToken](../README.md#accountSid_authToken) 134 135 ### HTTP request headers 136 137 - **Content-Type**: Not defined 138 - **Accept**: application/json 139 140 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 141 [[Back to Model list]](../README.md#documentation-for-models) 142 [[Back to README]](../README.md) 143