|
| 1 | +# WebhookEventsApi |
| 2 | + |
| 3 | +All URIs are relative to *https://api.pandadoc.com* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**detailsWebhookEvent**](WebhookEventsApi.md#detailsWebhookEvent) | **GET** /public/v1/webhook-events/{id} | Get webhook event by uuid |
| 8 | +[**listWebhookEvent**](WebhookEventsApi.md#listWebhookEvent) | **GET** /public/v1/webhook-events | Get webhook event page |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | +## detailsWebhookEvent |
| 13 | + |
| 14 | +> WebhookEventDetailsResponse detailsWebhookEvent(id) |
| 15 | +
|
| 16 | +Get webhook event by uuid |
| 17 | + |
| 18 | +### Example |
| 19 | + |
| 20 | +```java |
| 21 | +// Import classes: |
| 22 | +import com.pandadoc.client.ApiClient; |
| 23 | +import com.pandadoc.client.ApiException; |
| 24 | +import com.pandadoc.client.Configuration; |
| 25 | +import com.pandadoc.client.auth.*; |
| 26 | +import com.pandadoc.client.models.*; |
| 27 | +import com.pandadoc.client.api.WebhookEventsApi; |
| 28 | + |
| 29 | +import java.util.Arrays; |
| 30 | +import java.io.File; |
| 31 | +import java.util.List; |
| 32 | + |
| 33 | +public class Example { |
| 34 | + public static void main(String[] args) { |
| 35 | + ApiClient defaultClient = Configuration.getDefaultApiClient(); |
| 36 | + defaultClient.setBasePath("https://api.pandadoc.com"); |
| 37 | + |
| 38 | + // Configure API key authorization: apiKey |
| 39 | + ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey"); |
| 40 | + apiKey.setApiKey("YOUR API KEY"); |
| 41 | + // Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null) |
| 42 | + //apiKey.setApiKeyPrefix("API-Key"); |
| 43 | + |
| 44 | + // Configure OAuth2 access token for authorization: oauth2 |
| 45 | + // OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2"); |
| 46 | + // oauth2.setAccessToken("YOUR ACCESS TOKEN"); |
| 47 | + |
| 48 | + WebhookEventsApi apiInstance = new WebhookEventsApi(defaultClient); |
| 49 | + // UUID | Webhook event uuid |
| 50 | + UUID id = UUID.randomUUID(); |
| 51 | + try { |
| 52 | + WebhookEventDetailsResponse result = apiInstance.detailsWebhookEvent(id); |
| 53 | + System.out.println(result); |
| 54 | + } catch (ApiException e) { |
| 55 | + System.err.println("Exception when calling WebhookEventsApi#detailsWebhookEvent"); |
| 56 | + System.err.println("Status code: " + e.getCode()); |
| 57 | + System.err.println("Reason: " + e.getResponseBody()); |
| 58 | + System.err.println("Response headers: " + e.getResponseHeaders()); |
| 59 | + e.printStackTrace(); |
| 60 | + } |
| 61 | + } |
| 62 | +} |
| 63 | +``` |
| 64 | + |
| 65 | +### Parameters |
| 66 | + |
| 67 | + |
| 68 | +Name | Type | Description | Notes |
| 69 | +------------- | ------------- | ------------- | ------------- |
| 70 | + **id** | **UUID**| Webhook event uuid | |
| 71 | + |
| 72 | +### Return type |
| 73 | + |
| 74 | +[**WebhookEventDetailsResponse**](WebhookEventDetailsResponse.md) |
| 75 | + |
| 76 | +### Authorization |
| 77 | + |
| 78 | +[apiKey](../README.md#apiKey), [oauth2](../README.md#oauth2) |
| 79 | + |
| 80 | +### HTTP request headers |
| 81 | + |
| 82 | +- **Content-Type**: Not defined |
| 83 | +- **Accept**: application/json |
| 84 | + |
| 85 | + |
| 86 | +### HTTP response details |
| 87 | +| Status code | Description | Response headers | |
| 88 | +|-------------|-------------|------------------| |
| 89 | +| **200** | Get webhook event by uuid | - | |
| 90 | +| **401** | Authentication error | - | |
| 91 | +| **429** | Too Many Requests | - | |
| 92 | + |
| 93 | + |
| 94 | +## listWebhookEvent |
| 95 | + |
| 96 | +> WebhookEventPageResponse listWebhookEvent(count, page, since, to, type, httpStatusCode, error) |
| 97 | +
|
| 98 | +Get webhook event page |
| 99 | + |
| 100 | +### Example |
| 101 | + |
| 102 | +```java |
| 103 | +// Import classes: |
| 104 | +import com.pandadoc.client.ApiClient; |
| 105 | +import com.pandadoc.client.ApiException; |
| 106 | +import com.pandadoc.client.Configuration; |
| 107 | +import com.pandadoc.client.auth.*; |
| 108 | +import com.pandadoc.client.models.*; |
| 109 | +import com.pandadoc.client.api.WebhookEventsApi; |
| 110 | + |
| 111 | +import java.util.Arrays; |
| 112 | +import java.io.File; |
| 113 | +import java.util.List; |
| 114 | + |
| 115 | +public class Example { |
| 116 | + public static void main(String[] args) { |
| 117 | + ApiClient defaultClient = Configuration.getDefaultApiClient(); |
| 118 | + defaultClient.setBasePath("https://api.pandadoc.com"); |
| 119 | + |
| 120 | + // Configure API key authorization: apiKey |
| 121 | + ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey"); |
| 122 | + apiKey.setApiKey("YOUR API KEY"); |
| 123 | + // Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null) |
| 124 | + //apiKey.setApiKeyPrefix("API-Key"); |
| 125 | + |
| 126 | + // Configure OAuth2 access token for authorization: oauth2 |
| 127 | + // OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2"); |
| 128 | + // oauth2.setAccessToken("YOUR ACCESS TOKEN"); |
| 129 | + |
| 130 | + WebhookEventsApi apiInstance = new WebhookEventsApi(defaultClient); |
| 131 | + // Integer | Number of element in page |
| 132 | + Integer count = 56; |
| 133 | + // Integer | Page number |
| 134 | + Integer page = 56; |
| 135 | + // OffsetDateTime | Filter option: all events from specified timestamp |
| 136 | + OffsetDateTime since = OffsetDateTime.now(); |
| 137 | + // OffsetDateTime | Filter option: all events up to specified timestamp |
| 138 | + OffsetDateTime to = OffsetDateTime.now(); |
| 139 | + // List<WebhookEventTriggerEnum> | Filter option: all events of type |
| 140 | + List<WebhookEventTriggerEnum> type = Arrays.asList(); |
| 141 | + // List<WebhookEventHttpStatusCodeGroupEnum> | Filter option: all events of http status code |
| 142 | + List<WebhookEventHttpStatusCodeGroupEnum> httpStatusCode = Arrays.asList(); |
| 143 | + // List<WebhookEventErrorEnum> | Filter option: all events with following error |
| 144 | + List<WebhookEventErrorEnum> error = Arrays.asList(); |
| 145 | + try { |
| 146 | + WebhookEventPageResponse result = apiInstance.listWebhookEvent(count, page, since, to, type, httpStatusCode, error); |
| 147 | + System.out.println(result); |
| 148 | + } catch (ApiException e) { |
| 149 | + System.err.println("Exception when calling WebhookEventsApi#listWebhookEvent"); |
| 150 | + System.err.println("Status code: " + e.getCode()); |
| 151 | + System.err.println("Reason: " + e.getResponseBody()); |
| 152 | + System.err.println("Response headers: " + e.getResponseHeaders()); |
| 153 | + e.printStackTrace(); |
| 154 | + } |
| 155 | + } |
| 156 | +} |
| 157 | +``` |
| 158 | + |
| 159 | +### Parameters |
| 160 | + |
| 161 | + |
| 162 | +Name | Type | Description | Notes |
| 163 | +------------- | ------------- | ------------- | ------------- |
| 164 | + **count** | **Integer**| Number of element in page | |
| 165 | + **page** | **Integer**| Page number | |
| 166 | + **since** | **OffsetDateTime**| Filter option: all events from specified timestamp | [optional] |
| 167 | + **to** | **OffsetDateTime**| Filter option: all events up to specified timestamp | [optional] |
| 168 | + **type** | [**List<WebhookEventTriggerEnum>**](WebhookEventTriggerEnum.md)| Filter option: all events of type | [optional] |
| 169 | + **httpStatusCode** | [**List<WebhookEventHttpStatusCodeGroupEnum>**](WebhookEventHttpStatusCodeGroupEnum.md)| Filter option: all events of http status code | [optional] |
| 170 | + **error** | [**List<WebhookEventErrorEnum>**](WebhookEventErrorEnum.md)| Filter option: all events with following error | [optional] |
| 171 | + |
| 172 | +### Return type |
| 173 | + |
| 174 | +[**WebhookEventPageResponse**](WebhookEventPageResponse.md) |
| 175 | + |
| 176 | +### Authorization |
| 177 | + |
| 178 | +[apiKey](../README.md#apiKey), [oauth2](../README.md#oauth2) |
| 179 | + |
| 180 | +### HTTP request headers |
| 181 | + |
| 182 | +- **Content-Type**: Not defined |
| 183 | +- **Accept**: application/json |
| 184 | + |
| 185 | + |
| 186 | +### HTTP response details |
| 187 | +| Status code | Description | Response headers | |
| 188 | +|-------------|-------------|------------------| |
| 189 | +| **200** | Page of webhook events | - | |
| 190 | +| **401** | Authentication error | - | |
| 191 | +| **429** | Too Many Requests | - | |
| 192 | + |
0 commit comments