|
| 1 | +# pandadoc_client.APILogsApi |
| 2 | + |
| 3 | +All URIs are relative to *https://api.pandadoc.com* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**details_api_log**](APILogsApi.md#details_api_log) | **GET** /public/v1/logs/{id} | Details API Log |
| 8 | +[**list_api_logs**](APILogsApi.md#list_api_logs) | **GET** /public/v1/logs | List API Log |
| 9 | + |
| 10 | + |
| 11 | +# **details_api_log** |
| 12 | +> APILogDetailsResponse details_api_log(id) |
| 13 | +
|
| 14 | +Details API Log |
| 15 | + |
| 16 | +Returns details of the specific API log event. |
| 17 | + |
| 18 | +### Example |
| 19 | + |
| 20 | +* Api Key Authentication (apiKey): |
| 21 | +* OAuth Authentication (oauth2): |
| 22 | + |
| 23 | +```python |
| 24 | +import time |
| 25 | +import pandadoc_client |
| 26 | +from pandadoc_client.api import api_logs_api |
| 27 | +from pandadoc_client.model.api_log_details_response import APILogDetailsResponse |
| 28 | +from pprint import pprint |
| 29 | +# Defining the host is optional and defaults to https://api.pandadoc.com |
| 30 | +# See configuration.py for a list of all supported configuration parameters. |
| 31 | +configuration = pandadoc_client.Configuration( |
| 32 | + host = "https://api.pandadoc.com" |
| 33 | +) |
| 34 | + |
| 35 | +# The client must configure the authentication and authorization parameters |
| 36 | +# in accordance with the API server security policy. |
| 37 | +# Examples for each auth method are provided below, use the example that |
| 38 | +# satisfies your auth use case. |
| 39 | + |
| 40 | +# Configure API key authorization: apiKey |
| 41 | +configuration.api_key['apiKey'] = 'YOUR_API_KEY' |
| 42 | + |
| 43 | +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 44 | +# configuration.api_key_prefix['apiKey'] = 'Bearer' |
| 45 | + |
| 46 | +# Configure OAuth2 access token for authorization: oauth2 |
| 47 | +configuration = pandadoc_client.Configuration( |
| 48 | + host = "https://api.pandadoc.com" |
| 49 | +) |
| 50 | +configuration.access_token = 'YOUR_ACCESS_TOKEN' |
| 51 | + |
| 52 | +# Enter a context with an instance of the API client |
| 53 | +with pandadoc_client.ApiClient(configuration) as api_client: |
| 54 | + # Create an instance of the API class |
| 55 | + api_instance = api_logs_api.APILogsApi(api_client) |
| 56 | + id = "id_example" # str | Log event id. |
| 57 | + |
| 58 | + # example passing only required values which don't have defaults set |
| 59 | + try: |
| 60 | + # Details API Log |
| 61 | + api_response = api_instance.details_api_log(id) |
| 62 | + pprint(api_response) |
| 63 | + except pandadoc_client.ApiException as e: |
| 64 | + print("Exception when calling APILogsApi->details_api_log: %s\n" % e) |
| 65 | +``` |
| 66 | + |
| 67 | + |
| 68 | +### Parameters |
| 69 | + |
| 70 | +Name | Type | Description | Notes |
| 71 | +------------- | ------------- | ------------- | ------------- |
| 72 | + **id** | **str**| Log event id. | |
| 73 | + |
| 74 | +### Return type |
| 75 | + |
| 76 | +[**APILogDetailsResponse**](APILogDetailsResponse.md) |
| 77 | + |
| 78 | +### Authorization |
| 79 | + |
| 80 | +[apiKey](../README.md#apiKey), [oauth2](../README.md#oauth2) |
| 81 | + |
| 82 | +### HTTP request headers |
| 83 | + |
| 84 | + - **Content-Type**: Not defined |
| 85 | + - **Accept**: application/json |
| 86 | + |
| 87 | + |
| 88 | +### HTTP response details |
| 89 | + |
| 90 | +| Status code | Description | Response headers | |
| 91 | +|-------------|-------------|------------------| |
| 92 | +**200** | OK | - | |
| 93 | +**401** | Authentication error | - | |
| 94 | +**404** | Not found | - | |
| 95 | +**429** | Too Many Requests | - | |
| 96 | + |
| 97 | +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 98 | + |
| 99 | +# **list_api_logs** |
| 100 | +> APILogListResponse list_api_logs() |
| 101 | +
|
| 102 | +List API Log |
| 103 | + |
| 104 | +Get the list of all logs within the selected workspace. Optionally filter by date, page, and `#` of items per page. |
| 105 | + |
| 106 | +### Example |
| 107 | + |
| 108 | +* Api Key Authentication (apiKey): |
| 109 | +* OAuth Authentication (oauth2): |
| 110 | + |
| 111 | +```python |
| 112 | +import time |
| 113 | +import pandadoc_client |
| 114 | +from pandadoc_client.api import api_logs_api |
| 115 | +from pandadoc_client.model.api_log_list_response import APILogListResponse |
| 116 | +from pprint import pprint |
| 117 | +# Defining the host is optional and defaults to https://api.pandadoc.com |
| 118 | +# See configuration.py for a list of all supported configuration parameters. |
| 119 | +configuration = pandadoc_client.Configuration( |
| 120 | + host = "https://api.pandadoc.com" |
| 121 | +) |
| 122 | + |
| 123 | +# The client must configure the authentication and authorization parameters |
| 124 | +# in accordance with the API server security policy. |
| 125 | +# Examples for each auth method are provided below, use the example that |
| 126 | +# satisfies your auth use case. |
| 127 | + |
| 128 | +# Configure API key authorization: apiKey |
| 129 | +configuration.api_key['apiKey'] = 'YOUR_API_KEY' |
| 130 | + |
| 131 | +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 132 | +# configuration.api_key_prefix['apiKey'] = 'Bearer' |
| 133 | + |
| 134 | +# Configure OAuth2 access token for authorization: oauth2 |
| 135 | +configuration = pandadoc_client.Configuration( |
| 136 | + host = "https://api.pandadoc.com" |
| 137 | +) |
| 138 | +configuration.access_token = 'YOUR_ACCESS_TOKEN' |
| 139 | + |
| 140 | +# Enter a context with an instance of the API client |
| 141 | +with pandadoc_client.ApiClient(configuration) as api_client: |
| 142 | + # Create an instance of the API class |
| 143 | + api_instance = api_logs_api.APILogsApi(api_client) |
| 144 | + since = "since_example" # str | Determines a point in time from which logs should be fetched. Either a specific ISO 8601 datetime or a relative identifier such as \"-90d\" (for past 90 days). (optional) |
| 145 | + to = "to_example" # str | Determines a point in time from which logs should be fetched. Either a specific ISO 8601 datetime or a relative identifier such as \"-10d\" (for past 10 days) or a special \"now\" value. (optional) |
| 146 | + count = 1 # int | The amount of items on each page. (optional) |
| 147 | + page = 1 # int | Page number of the results returned. (optional) |
| 148 | + statuses = [ |
| 149 | + 100, |
| 150 | + ] # [int] | Returns only the predefined status codes. Allows 1xx, 2xx, 3xx, 4xx, and 5xx. (optional) |
| 151 | + methods = [ |
| 152 | + "GET", |
| 153 | + ] # [str] | Returns only the predefined HTTP methods. Allows GET, POST, PUT, PATCH, and DELETE. (optional) |
| 154 | + search = "search_example" # str | Returns the results containing a string. (optional) |
| 155 | + environment_type = "PRODUCTION" # str | Returns logs for production/sandbox. (optional) |
| 156 | + |
| 157 | + # example passing only required values which don't have defaults set |
| 158 | + # and optional values |
| 159 | + try: |
| 160 | + # List API Log |
| 161 | + api_response = api_instance.list_api_logs(since=since, to=to, count=count, page=page, statuses=statuses, methods=methods, search=search, environment_type=environment_type) |
| 162 | + pprint(api_response) |
| 163 | + except pandadoc_client.ApiException as e: |
| 164 | + print("Exception when calling APILogsApi->list_api_logs: %s\n" % e) |
| 165 | +``` |
| 166 | + |
| 167 | + |
| 168 | +### Parameters |
| 169 | + |
| 170 | +Name | Type | Description | Notes |
| 171 | +------------- | ------------- | ------------- | ------------- |
| 172 | + **since** | **str**| Determines a point in time from which logs should be fetched. Either a specific ISO 8601 datetime or a relative identifier such as \"-90d\" (for past 90 days). | [optional] |
| 173 | + **to** | **str**| Determines a point in time from which logs should be fetched. Either a specific ISO 8601 datetime or a relative identifier such as \"-10d\" (for past 10 days) or a special \"now\" value. | [optional] |
| 174 | + **count** | **int**| The amount of items on each page. | [optional] |
| 175 | + **page** | **int**| Page number of the results returned. | [optional] |
| 176 | + **statuses** | **[int]**| Returns only the predefined status codes. Allows 1xx, 2xx, 3xx, 4xx, and 5xx. | [optional] |
| 177 | + **methods** | **[str]**| Returns only the predefined HTTP methods. Allows GET, POST, PUT, PATCH, and DELETE. | [optional] |
| 178 | + **search** | **str**| Returns the results containing a string. | [optional] |
| 179 | + **environment_type** | **str**| Returns logs for production/sandbox. | [optional] |
| 180 | + |
| 181 | +### Return type |
| 182 | + |
| 183 | +[**APILogListResponse**](APILogListResponse.md) |
| 184 | + |
| 185 | +### Authorization |
| 186 | + |
| 187 | +[apiKey](../README.md#apiKey), [oauth2](../README.md#oauth2) |
| 188 | + |
| 189 | +### HTTP request headers |
| 190 | + |
| 191 | + - **Content-Type**: Not defined |
| 192 | + - **Accept**: application/json |
| 193 | + |
| 194 | + |
| 195 | +### HTTP response details |
| 196 | + |
| 197 | +| Status code | Description | Response headers | |
| 198 | +|-------------|-------------|------------------| |
| 199 | +**200** | OK | - | |
| 200 | +**400** | Bad Request | - | |
| 201 | +**401** | Authentication error | - | |
| 202 | +**429** | Too Many Requests | - | |
| 203 | + |
| 204 | +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 205 | + |
0 commit comments