github.com/twilio/twilio-go@v1.20.1/rest/api/v2010/docs/AccountsCallsUserDefinedMessageSubscriptionsApi.md (about)

     1  # AccountsCallsUserDefinedMessageSubscriptionsApi
     2  
     3  All URIs are relative to *https://api.twilio.com*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**CreateUserDefinedMessageSubscription**](AccountsCallsUserDefinedMessageSubscriptionsApi.md#CreateUserDefinedMessageSubscription) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions.json | 
     8  [**DeleteUserDefinedMessageSubscription**](AccountsCallsUserDefinedMessageSubscriptionsApi.md#DeleteUserDefinedMessageSubscription) | **Delete** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions/{Sid}.json | 
     9  
    10  
    11  
    12  ## CreateUserDefinedMessageSubscription
    13  
    14  > ApiV2010UserDefinedMessageSubscription CreateUserDefinedMessageSubscription(ctx, CallSidoptional)
    15  
    16  
    17  
    18  Subscribe to User Defined Messages for a given Call SID.
    19  
    20  ### Path Parameters
    21  
    22  
    23  Name | Type | Description
    24  ------------- | ------------- | -------------
    25  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    26  **CallSid** | **string** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Messages subscription is associated with. This refers to the Call SID that is producing the user defined messages.
    27  
    28  ### Other Parameters
    29  
    30  Other parameters are passed through a pointer to a CreateUserDefinedMessageSubscriptionParams struct
    31  
    32  
    33  Name | Type | Description
    34  ------------- | ------------- | -------------
    35  **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages.
    36  **Callback** | **string** | The URL we should call using the `method` to send user defined events to your application. URLs must contain a valid hostname (underscores are not permitted).
    37  **IdempotencyKey** | **string** | A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated.
    38  **Method** | **string** | The HTTP method Twilio will use when requesting the above `Url`. Either `GET` or `POST`. Default is `POST`.
    39  
    40  ### Return type
    41  
    42  [**ApiV2010UserDefinedMessageSubscription**](ApiV2010UserDefinedMessageSubscription.md)
    43  
    44  ### Authorization
    45  
    46  [accountSid_authToken](../README.md#accountSid_authToken)
    47  
    48  ### HTTP request headers
    49  
    50  - **Content-Type**: application/x-www-form-urlencoded
    51  - **Accept**: application/json
    52  
    53  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    54  [[Back to Model list]](../README.md#documentation-for-models)
    55  [[Back to README]](../README.md)
    56  
    57  
    58  ## DeleteUserDefinedMessageSubscription
    59  
    60  > DeleteUserDefinedMessageSubscription(ctx, CallSidSidoptional)
    61  
    62  
    63  
    64  Delete a specific User Defined Message Subscription.
    65  
    66  ### Path Parameters
    67  
    68  
    69  Name | Type | Description
    70  ------------- | ------------- | -------------
    71  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    72  **CallSid** | **string** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message Subscription is associated with. This refers to the Call SID that is producing the User Defined Messages.
    73  **Sid** | **string** | The SID that uniquely identifies this User Defined Message Subscription.
    74  
    75  ### Other Parameters
    76  
    77  Other parameters are passed through a pointer to a DeleteUserDefinedMessageSubscriptionParams struct
    78  
    79  
    80  Name | Type | Description
    81  ------------- | ------------- | -------------
    82  **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages.
    83  
    84  ### Return type
    85  
    86   (empty response body)
    87  
    88  ### Authorization
    89  
    90  [accountSid_authToken](../README.md#accountSid_authToken)
    91  
    92  ### HTTP request headers
    93  
    94  - **Content-Type**: Not defined
    95  - **Accept**: Not defined
    96  
    97  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    98  [[Back to Model list]](../README.md#documentation-for-models)
    99  [[Back to README]](../README.md)
   100