github.com/twilio/twilio-go@v1.20.1/rest/chat/v2/docs/ServicesBindingsApi.md (about) 1 # ServicesBindingsApi 2 3 All URIs are relative to *https://chat.twilio.com* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**DeleteBinding**](ServicesBindingsApi.md#DeleteBinding) | **Delete** /v2/Services/{ServiceSid}/Bindings/{Sid} | 8 [**FetchBinding**](ServicesBindingsApi.md#FetchBinding) | **Get** /v2/Services/{ServiceSid}/Bindings/{Sid} | 9 [**ListBinding**](ServicesBindingsApi.md#ListBinding) | **Get** /v2/Services/{ServiceSid}/Bindings | 10 11 12 13 ## DeleteBinding 14 15 > DeleteBinding(ctx, ServiceSidSid) 16 17 18 19 20 21 ### Path Parameters 22 23 24 Name | Type | Description 25 ------------- | ------------- | ------------- 26 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 27 **ServiceSid** | **string** | The SID of the [Service](https://www.twilio.com/docs/chat/rest/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 DeleteBindingParams 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 ## FetchBinding 57 58 > ChatV2Binding FetchBinding(ctx, ServiceSidSid) 59 60 61 62 63 64 ### Path Parameters 65 66 67 Name | Type | Description 68 ------------- | ------------- | ------------- 69 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 70 **ServiceSid** | **string** | The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Binding resource from. 71 **Sid** | **string** | The SID of the Binding resource to fetch. 72 73 ### Other Parameters 74 75 Other parameters are passed through a pointer to a FetchBindingParams struct 76 77 78 Name | Type | Description 79 ------------- | ------------- | ------------- 80 81 ### Return type 82 83 [**ChatV2Binding**](ChatV2Binding.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 ## ListBinding 100 101 > []ChatV2Binding ListBinding(ctx, ServiceSidoptional) 102 103 104 105 106 107 ### Path Parameters 108 109 110 Name | Type | Description 111 ------------- | ------------- | ------------- 112 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 113 **ServiceSid** | **string** | The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Binding resources from. 114 115 ### Other Parameters 116 117 Other parameters are passed through a pointer to a ListBindingParams struct 118 119 120 Name | Type | Description 121 ------------- | ------------- | ------------- 122 **BindingType** | [**[]BindingEnumBindingType**](BindingEnumBindingType.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 [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/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 [**[]ChatV2Binding**](ChatV2Binding.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