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

     1  # AccountsNotificationsApi
     2  
     3  All URIs are relative to *https://api.twilio.com*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**FetchNotification**](AccountsNotificationsApi.md#FetchNotification) | **Get** /2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json | 
     8  [**ListNotification**](AccountsNotificationsApi.md#ListNotification) | **Get** /2010-04-01/Accounts/{AccountSid}/Notifications.json | 
     9  
    10  
    11  
    12  ## FetchNotification
    13  
    14  > ApiV2010NotificationInstance FetchNotification(ctx, Sidoptional)
    15  
    16  
    17  
    18  Fetch a notification belonging to the account used to make the request
    19  
    20  ### Path Parameters
    21  
    22  
    23  Name | Type | Description
    24  ------------- | ------------- | -------------
    25  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    26  **Sid** | **string** | The Twilio-provided string that uniquely identifies the Notification resource to fetch.
    27  
    28  ### Other Parameters
    29  
    30  Other parameters are passed through a pointer to a FetchNotificationParams 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 created the Notification resource to fetch.
    36  
    37  ### Return type
    38  
    39  [**ApiV2010NotificationInstance**](ApiV2010NotificationInstance.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  ## ListNotification
    56  
    57  > []ApiV2010Notification ListNotification(ctx, optional)
    58  
    59  
    60  
    61  Retrieve a list of notifications belonging to the account used to make the request
    62  
    63  ### Path Parameters
    64  
    65  This endpoint does not need any path parameter.
    66  
    67  ### Other Parameters
    68  
    69  Other parameters are passed through a pointer to a ListNotificationParams struct
    70  
    71  
    72  Name | Type | Description
    73  ------------- | ------------- | -------------
    74  **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resources to read.
    75  **Log** | **int** | Only read notifications of the specified log level. Can be:  `0` to read only ERROR notifications or `1` to read only WARNING notifications. By default, all notifications are read.
    76  **MessageDate** | **string** | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date.
    77  **MessageDateBefore** | **string** | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date.
    78  **MessageDateAfter** | **string** | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date.
    79  **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000.
    80  **Limit** | **int** | Max number of records to return.
    81  
    82  ### Return type
    83  
    84  [**[]ApiV2010Notification**](ApiV2010Notification.md)
    85  
    86  ### Authorization
    87  
    88  [accountSid_authToken](../README.md#accountSid_authToken)
    89  
    90  ### HTTP request headers
    91  
    92  - **Content-Type**: Not defined
    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