|
| 1 | +# SendinBlue\Client\InboundParsingApi |
| 2 | + |
| 3 | +All URIs are relative to *https://api.sendinblue.com/v3* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**getInboundEmailEvents**](InboundParsingApi.md#getInboundEmailEvents) | **GET** /inbound/events | Get the list of all the events for the received emails. |
| 8 | +[**getInboundEmailEventsByUuid**](InboundParsingApi.md#getInboundEmailEventsByUuid) | **GET** /inbound/events/{uuid} | Fetch all events history for one particular received email. |
| 9 | + |
| 10 | + |
| 11 | +# **getInboundEmailEvents** |
| 12 | +> \SendinBlue\Client\Model\GetInboundEmailEvents getInboundEmailEvents($sender, $startDate, $endDate, $limit, $offset, $sort) |
| 13 | +
|
| 14 | +Get the list of all the events for the received emails. |
| 15 | + |
| 16 | +This endpoint will show the list of all the events for the received emails. |
| 17 | + |
| 18 | +### Example |
| 19 | +```php |
| 20 | +<?php |
| 21 | +require_once(__DIR__ . '/vendor/autoload.php'); |
| 22 | + |
| 23 | +// Configure API key authorization: api-key |
| 24 | +$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); |
| 25 | +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 26 | +// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); |
| 27 | +// Configure API key authorization: partner-key |
| 28 | +$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY'); |
| 29 | +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 30 | +// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer'); |
| 31 | + |
| 32 | +$apiInstance = new SendinBlue\Client\Api\InboundParsingApi( |
| 33 | + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. |
| 34 | + // This is optional, `GuzzleHttp\Client` will be used as default. |
| 35 | + new GuzzleHttp\Client(), |
| 36 | + $config |
| 37 | +); |
| 38 | +$sender = "sender_example"; // string | Email address of the sender. |
| 39 | +$startDate = new \DateTime("2013-10-20"); // \DateTime | Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. |
| 40 | +$endDate = new \DateTime("2013-10-20"); // \DateTime | Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. |
| 41 | +$limit = 100; // int | Number of documents returned per page |
| 42 | +$offset = 0; // int | Index of the first document on the page |
| 43 | +$sort = "desc"; // string | Sort the results in the ascending/descending order of record creation |
| 44 | + |
| 45 | +try { |
| 46 | + $result = $apiInstance->getInboundEmailEvents($sender, $startDate, $endDate, $limit, $offset, $sort); |
| 47 | + print_r($result); |
| 48 | +} catch (Exception $e) { |
| 49 | + echo 'Exception when calling InboundParsingApi->getInboundEmailEvents: ', $e->getMessage(), PHP_EOL; |
| 50 | +} |
| 51 | +?> |
| 52 | +``` |
| 53 | + |
| 54 | +### Parameters |
| 55 | + |
| 56 | +Name | Type | Description | Notes |
| 57 | +------------- | ------------- | ------------- | ------------- |
| 58 | + **sender** | **string**| Email address of the sender. | [optional] |
| 59 | + **startDate** | **\DateTime**| Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. | [optional] |
| 60 | + **endDate** | **\DateTime**| Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. | [optional] |
| 61 | + **limit** | **int**| Number of documents returned per page | [optional] [default to 100] |
| 62 | + **offset** | **int**| Index of the first document on the page | [optional] [default to 0] |
| 63 | + **sort** | **string**| Sort the results in the ascending/descending order of record creation | [optional] [default to desc] |
| 64 | + |
| 65 | +### Return type |
| 66 | + |
| 67 | +[**\SendinBlue\Client\Model\GetInboundEmailEvents**](../Model/GetInboundEmailEvents.md) |
| 68 | + |
| 69 | +### Authorization |
| 70 | + |
| 71 | +[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key) |
| 72 | + |
| 73 | +### HTTP request headers |
| 74 | + |
| 75 | + - **Content-Type**: application/json |
| 76 | + - **Accept**: application/json |
| 77 | + |
| 78 | +[[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) |
| 79 | + |
| 80 | +# **getInboundEmailEventsByUuid** |
| 81 | +> \SendinBlue\Client\Model\GetInboundEmailEventsByUuid getInboundEmailEventsByUuid($uuid) |
| 82 | +
|
| 83 | +Fetch all events history for one particular received email. |
| 84 | + |
| 85 | +This endpoint will show the list of all events history for one particular received email. |
| 86 | + |
| 87 | +### Example |
| 88 | +```php |
| 89 | +<?php |
| 90 | +require_once(__DIR__ . '/vendor/autoload.php'); |
| 91 | + |
| 92 | +// Configure API key authorization: api-key |
| 93 | +$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); |
| 94 | +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 95 | +// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); |
| 96 | +// Configure API key authorization: partner-key |
| 97 | +$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY'); |
| 98 | +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 99 | +// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer'); |
| 100 | + |
| 101 | +$apiInstance = new SendinBlue\Client\Api\InboundParsingApi( |
| 102 | + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. |
| 103 | + // This is optional, `GuzzleHttp\Client` will be used as default. |
| 104 | + new GuzzleHttp\Client(), |
| 105 | + $config |
| 106 | +); |
| 107 | +$uuid = "uuid_example"; // string | UUID to fetch events specific to recieved email |
| 108 | + |
| 109 | +try { |
| 110 | + $result = $apiInstance->getInboundEmailEventsByUuid($uuid); |
| 111 | + print_r($result); |
| 112 | +} catch (Exception $e) { |
| 113 | + echo 'Exception when calling InboundParsingApi->getInboundEmailEventsByUuid: ', $e->getMessage(), PHP_EOL; |
| 114 | +} |
| 115 | +?> |
| 116 | +``` |
| 117 | + |
| 118 | +### Parameters |
| 119 | + |
| 120 | +Name | Type | Description | Notes |
| 121 | +------------- | ------------- | ------------- | ------------- |
| 122 | + **uuid** | **string**| UUID to fetch events specific to recieved email | |
| 123 | + |
| 124 | +### Return type |
| 125 | + |
| 126 | +[**\SendinBlue\Client\Model\GetInboundEmailEventsByUuid**](../Model/GetInboundEmailEventsByUuid.md) |
| 127 | + |
| 128 | +### Authorization |
| 129 | + |
| 130 | +[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key) |
| 131 | + |
| 132 | +### HTTP request headers |
| 133 | + |
| 134 | + - **Content-Type**: application/json |
| 135 | + - **Accept**: application/json |
| 136 | + |
| 137 | +[[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) |
| 138 | + |
0 commit comments