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

     1  # AccountsMessagesMediaApi
     2  
     3  All URIs are relative to *https://api.twilio.com*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**DeleteMedia**](AccountsMessagesMediaApi.md#DeleteMedia) | **Delete** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json | 
     8  [**FetchMedia**](AccountsMessagesMediaApi.md#FetchMedia) | **Get** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json | 
     9  [**ListMedia**](AccountsMessagesMediaApi.md#ListMedia) | **Get** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json | 
    10  
    11  
    12  
    13  ## DeleteMedia
    14  
    15  > DeleteMedia(ctx, MessageSidSidoptional)
    16  
    17  
    18  
    19  Delete the Media resource.
    20  
    21  ### Path Parameters
    22  
    23  
    24  Name | Type | Description
    25  ------------- | ------------- | -------------
    26  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    27  **MessageSid** | **string** | The SID of the Message resource that is associated with the Media resource.
    28  **Sid** | **string** | The unique identifier of the to-be-deleted Media resource.
    29  
    30  ### Other Parameters
    31  
    32  Other parameters are passed through a pointer to a DeleteMediaParams struct
    33  
    34  
    35  Name | Type | Description
    36  ------------- | ------------- | -------------
    37  **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is associated with the Media resource.
    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  ## FetchMedia
    58  
    59  > ApiV2010Media FetchMedia(ctx, MessageSidSidoptional)
    60  
    61  
    62  
    63  Fetch a single Media resource associated with a specific Message resource
    64  
    65  ### Path Parameters
    66  
    67  
    68  Name | Type | Description
    69  ------------- | ------------- | -------------
    70  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    71  **MessageSid** | **string** | The SID of the Message resource that is associated with the Media resource.
    72  **Sid** | **string** | The Twilio-provided string that uniquely identifies the Media resource to fetch.
    73  
    74  ### Other Parameters
    75  
    76  Other parameters are passed through a pointer to a FetchMediaParams struct
    77  
    78  
    79  Name | Type | Description
    80  ------------- | ------------- | -------------
    81  **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Media resource.
    82  
    83  ### Return type
    84  
    85  [**ApiV2010Media**](ApiV2010Media.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  ## ListMedia
   102  
   103  > []ApiV2010Media ListMedia(ctx, MessageSidoptional)
   104  
   105  
   106  
   107  Read a list of Media resources associated with a specific Message resource
   108  
   109  ### Path Parameters
   110  
   111  
   112  Name | Type | Description
   113  ------------- | ------------- | -------------
   114  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   115  **MessageSid** | **string** | The SID of the Message resource that is associated with the Media resources.
   116  
   117  ### Other Parameters
   118  
   119  Other parameters are passed through a pointer to a ListMediaParams struct
   120  
   121  
   122  Name | Type | Description
   123  ------------- | ------------- | -------------
   124  **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is associated with the Media resources.
   125  **DateCreated** | **time.Time** | Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date.
   126  **DateCreatedBefore** | **time.Time** | Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date.
   127  **DateCreatedAfter** | **time.Time** | Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date.
   128  **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000.
   129  **Limit** | **int** | Max number of records to return.
   130  
   131  ### Return type
   132  
   133  [**[]ApiV2010Media**](ApiV2010Media.md)
   134  
   135  ### Authorization
   136  
   137  [accountSid_authToken](../README.md#accountSid_authToken)
   138  
   139  ### HTTP request headers
   140  
   141  - **Content-Type**: Not defined
   142  - **Accept**: application/json
   143  
   144  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   145  [[Back to Model list]](../README.md#documentation-for-models)
   146  [[Back to README]](../README.md)
   147