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

     1  # LinkShorteningDomainsConfigApi
     2  
     3  All URIs are relative to *https://messaging.twilio.com*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**FetchDomainConfig**](LinkShorteningDomainsConfigApi.md#FetchDomainConfig) | **Get** /v1/LinkShortening/Domains/{DomainSid}/Config | 
     8  [**UpdateDomainConfig**](LinkShorteningDomainsConfigApi.md#UpdateDomainConfig) | **Post** /v1/LinkShortening/Domains/{DomainSid}/Config | 
     9  
    10  
    11  
    12  ## FetchDomainConfig
    13  
    14  > MessagingV1DomainConfig FetchDomainConfig(ctx, DomainSid)
    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** | Unique string used to identify the domain that this config should be associated with.
    27  
    28  ### Other Parameters
    29  
    30  Other parameters are passed through a pointer to a FetchDomainConfigParams struct
    31  
    32  
    33  Name | Type | Description
    34  ------------- | ------------- | -------------
    35  
    36  ### Return type
    37  
    38  [**MessagingV1DomainConfig**](MessagingV1DomainConfig.md)
    39  
    40  ### Authorization
    41  
    42  [accountSid_authToken](../README.md#accountSid_authToken)
    43  
    44  ### HTTP request headers
    45  
    46  - **Content-Type**: Not defined
    47  - **Accept**: application/json
    48  
    49  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    50  [[Back to Model list]](../README.md#documentation-for-models)
    51  [[Back to README]](../README.md)
    52  
    53  
    54  ## UpdateDomainConfig
    55  
    56  > MessagingV1DomainConfig UpdateDomainConfig(ctx, DomainSidoptional)
    57  
    58  
    59  
    60  
    61  
    62  ### Path Parameters
    63  
    64  
    65  Name | Type | Description
    66  ------------- | ------------- | -------------
    67  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    68  **DomainSid** | **string** | Unique string used to identify the domain that this config should be associated with.
    69  
    70  ### Other Parameters
    71  
    72  Other parameters are passed through a pointer to a UpdateDomainConfigParams struct
    73  
    74  
    75  Name | Type | Description
    76  ------------- | ------------- | -------------
    77  **FallbackUrl** | **string** | Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping.
    78  **CallbackUrl** | **string** | URL to receive click events to your webhook whenever the recipients click on the shortened links
    79  **ContinueOnFailure** | **bool** | Boolean field to set customer delivery preference when there is a failure in linkShortening service
    80  **DisableHttps** | **bool** | Customer's choice to send links with/without \\\"https://\\\" attached to shortened url. If true, messages will not be sent with https:// at the beginning of the url. If false, messages will be sent with https:// at the beginning of the url. False is the default behavior if it is not specified.
    81  
    82  ### Return type
    83  
    84  [**MessagingV1DomainConfig**](MessagingV1DomainConfig.md)
    85  
    86  ### Authorization
    87  
    88  [accountSid_authToken](../README.md#accountSid_authToken)
    89  
    90  ### HTTP request headers
    91  
    92  - **Content-Type**: application/x-www-form-urlencoded
    93  - **Accept**: application/json
    94  
    95  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    96  [[Back to Model list]](../README.md#documentation-for-models)
    97  [[Back to README]](../README.md)
    98