github.com/twilio/twilio-go@v1.20.1/rest/messaging/v1/docs/LinkShorteningDomainsMessagingServicesApi.md (about)

     1  # LinkShorteningDomainsMessagingServicesApi
     2  
     3  All URIs are relative to *https://messaging.twilio.com*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**CreateLinkshorteningMessagingService**](LinkShorteningDomainsMessagingServicesApi.md#CreateLinkshorteningMessagingService) | **Post** /v1/LinkShortening/Domains/{DomainSid}/MessagingServices/{MessagingServiceSid} | 
     8  [**DeleteLinkshorteningMessagingService**](LinkShorteningDomainsMessagingServicesApi.md#DeleteLinkshorteningMessagingService) | **Delete** /v1/LinkShortening/Domains/{DomainSid}/MessagingServices/{MessagingServiceSid} | 
     9  
    10  
    11  
    12  ## CreateLinkshorteningMessagingService
    13  
    14  > MessagingV1LinkshorteningMessagingService CreateLinkshorteningMessagingService(ctx, DomainSidMessagingServiceSid)
    15  
    16  
    17  
    18  
    19  
    20  ### Path Parameters
    21  
    22  
    23  Name | Type | Description
    24  ------------- | ------------- | -------------
    25  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    26  **DomainSid** | **string** | The domain SID to associate with a messaging service. With URL shortening enabled, links in messages sent with the associated messaging service will be shortened to the provided domain
    27  **MessagingServiceSid** | **string** | A messaging service SID to associate with a domain. With URL shortening enabled, links in messages sent with the provided messaging service will be shortened to the associated domain
    28  
    29  ### Other Parameters
    30  
    31  Other parameters are passed through a pointer to a CreateLinkshorteningMessagingServiceParams struct
    32  
    33  
    34  Name | Type | Description
    35  ------------- | ------------- | -------------
    36  
    37  ### Return type
    38  
    39  [**MessagingV1LinkshorteningMessagingService**](MessagingV1LinkshorteningMessagingService.md)
    40  
    41  ### Authorization
    42  
    43  [accountSid_authToken](../README.md#accountSid_authToken)
    44  
    45  ### HTTP request headers
    46  
    47  - **Content-Type**: Not defined
    48  - **Accept**: application/json
    49  
    50  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    51  [[Back to Model list]](../README.md#documentation-for-models)
    52  [[Back to README]](../README.md)
    53  
    54  
    55  ## DeleteLinkshorteningMessagingService
    56  
    57  > DeleteLinkshorteningMessagingService(ctx, DomainSidMessagingServiceSid)
    58  
    59  
    60  
    61  
    62  
    63  ### Path Parameters
    64  
    65  
    66  Name | Type | Description
    67  ------------- | ------------- | -------------
    68  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    69  **DomainSid** | **string** | The domain SID to dissociate from a messaging service. With URL shortening enabled, links in messages sent with the associated messaging service will be shortened to the provided domain
    70  **MessagingServiceSid** | **string** | A messaging service SID to dissociate from a domain. With URL shortening enabled, links in messages sent with the provided messaging service will be shortened to the associated domain
    71  
    72  ### Other Parameters
    73  
    74  Other parameters are passed through a pointer to a DeleteLinkshorteningMessagingServiceParams struct
    75  
    76  
    77  Name | Type | Description
    78  ------------- | ------------- | -------------
    79  
    80  ### Return type
    81  
    82   (empty response body)
    83  
    84  ### Authorization
    85  
    86  [accountSid_authToken](../README.md#accountSid_authToken)
    87  
    88  ### HTTP request headers
    89  
    90  - **Content-Type**: Not defined
    91  - **Accept**: Not defined
    92  
    93  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    94  [[Back to Model list]](../README.md#documentation-for-models)
    95  [[Back to README]](../README.md)
    96