github.com/twilio/twilio-go@v1.20.1/rest/chat/v2/docs/ServicesUsersBindingsApi.md (about)

     1  # ServicesUsersBindingsApi
     2  
     3  All URIs are relative to *https://chat.twilio.com*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**DeleteUserBinding**](ServicesUsersBindingsApi.md#DeleteUserBinding) | **Delete** /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid} | 
     8  [**FetchUserBinding**](ServicesUsersBindingsApi.md#FetchUserBinding) | **Get** /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid} | 
     9  [**ListUserBinding**](ServicesUsersBindingsApi.md#ListUserBinding) | **Get** /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings | 
    10  
    11  
    12  
    13  ## DeleteUserBinding
    14  
    15  > DeleteUserBinding(ctx, ServiceSidUserSidSid)
    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 User Binding resource from.
    28  **UserSid** | **string** | The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resources to delete.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
    29  **Sid** | **string** | The SID of the User Binding resource to delete.
    30  
    31  ### Other Parameters
    32  
    33  Other parameters are passed through a pointer to a DeleteUserBindingParams struct
    34  
    35  
    36  Name | Type | Description
    37  ------------- | ------------- | -------------
    38  
    39  ### Return type
    40  
    41   (empty response body)
    42  
    43  ### Authorization
    44  
    45  [accountSid_authToken](../README.md#accountSid_authToken)
    46  
    47  ### HTTP request headers
    48  
    49  - **Content-Type**: Not defined
    50  - **Accept**: Not defined
    51  
    52  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    53  [[Back to Model list]](../README.md#documentation-for-models)
    54  [[Back to README]](../README.md)
    55  
    56  
    57  ## FetchUserBinding
    58  
    59  > ChatV2UserBinding FetchUserBinding(ctx, ServiceSidUserSidSid)
    60  
    61  
    62  
    63  
    64  
    65  ### Path Parameters
    66  
    67  
    68  Name | Type | Description
    69  ------------- | ------------- | -------------
    70  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    71  **ServiceSid** | **string** | The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User Binding resource from.
    72  **UserSid** | **string** | The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resource to fetch.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
    73  **Sid** | **string** | The SID of the User Binding resource to fetch.
    74  
    75  ### Other Parameters
    76  
    77  Other parameters are passed through a pointer to a FetchUserBindingParams struct
    78  
    79  
    80  Name | Type | Description
    81  ------------- | ------------- | -------------
    82  
    83  ### Return type
    84  
    85  [**ChatV2UserBinding**](ChatV2UserBinding.md)
    86  
    87  ### Authorization
    88  
    89  [accountSid_authToken](../README.md#accountSid_authToken)
    90  
    91  ### HTTP request headers
    92  
    93  - **Content-Type**: Not defined
    94  - **Accept**: application/json
    95  
    96  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    97  [[Back to Model list]](../README.md#documentation-for-models)
    98  [[Back to README]](../README.md)
    99  
   100  
   101  ## ListUserBinding
   102  
   103  > []ChatV2UserBinding ListUserBinding(ctx, ServiceSidUserSidoptional)
   104  
   105  
   106  
   107  
   108  
   109  ### Path Parameters
   110  
   111  
   112  Name | Type | Description
   113  ------------- | ------------- | -------------
   114  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   115  **ServiceSid** | **string** | The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User Binding resources from.
   116  **UserSid** | **string** | The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resources to read.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
   117  
   118  ### Other Parameters
   119  
   120  Other parameters are passed through a pointer to a ListUserBindingParams struct
   121  
   122  
   123  Name | Type | Description
   124  ------------- | ------------- | -------------
   125  **BindingType** | [**[]UserBindingEnumBindingType**](UserBindingEnumBindingType.md) | The push technology used by the User 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.
   126  **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000.
   127  **Limit** | **int** | Max number of records to return.
   128  
   129  ### Return type
   130  
   131  [**[]ChatV2UserBinding**](ChatV2UserBinding.md)
   132  
   133  ### Authorization
   134  
   135  [accountSid_authToken](../README.md#accountSid_authToken)
   136  
   137  ### HTTP request headers
   138  
   139  - **Content-Type**: Not defined
   140  - **Accept**: application/json
   141  
   142  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   143  [[Back to Model list]](../README.md#documentation-for-models)
   144  [[Back to README]](../README.md)
   145