|
| 1 | +# OpenAPI\Client\EmailValidationApi |
| 2 | + |
| 3 | +All URIs are relative to http://localhost. |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**emailValidationSingleValidationGet()**](EmailValidationApi.md#emailValidationSingleValidationGet) | **GET** /v1/validation/single/{email} | |
| 8 | +[**emailValidationSingleValidationPost()**](EmailValidationApi.md#emailValidationSingleValidationPost) | **POST** /v1/validation/single | |
| 9 | + |
| 10 | + |
| 11 | +## `emailValidationSingleValidationGet()` |
| 12 | + |
| 13 | +```php |
| 14 | +emailValidationSingleValidationGet($email, $result_type): \OpenAPI\Client\Model\EmailResponse |
| 15 | +``` |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | +POST request contains additional parameters for detailed configuration |
| 20 | + |
| 21 | +### Example |
| 22 | + |
| 23 | +```php |
| 24 | +<?php |
| 25 | +require_once(__DIR__ . '/vendor/autoload.php'); |
| 26 | + |
| 27 | + |
| 28 | +// Configure API key authorization: AuthKey |
| 29 | +$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY'); |
| 30 | +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 31 | +// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer'); |
| 32 | + |
| 33 | +// Configure API key authorization: RapidApiKey |
| 34 | +$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('X-RapidAPI-Key', 'YOUR_API_KEY'); |
| 35 | +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 36 | +// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-RapidAPI-Key', 'Bearer'); |
| 37 | + |
| 38 | +// Configure API key authorization: RapidApiSecret |
| 39 | +$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('X-RapidAPI-Proxy-Secret', 'YOUR_API_KEY'); |
| 40 | +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 41 | +// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-RapidAPI-Proxy-Secret', 'Bearer'); |
| 42 | + |
| 43 | + |
| 44 | +$apiInstance = new OpenAPI\Client\Api\EmailValidationApi( |
| 45 | + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. |
| 46 | + // This is optional, `GuzzleHttp\Client` will be used as default. |
| 47 | + new GuzzleHttp\Client(), |
| 48 | + $config |
| 49 | +); |
| 50 | +$email = 'email_example'; // string |
| 51 | +$result_type = new \OpenAPI\Client\Model\\OpenAPI\Client\Model\ResultType(); // \OpenAPI\Client\Model\ResultType | ResultTypeDescription |
| 52 | + |
| 53 | +try { |
| 54 | + $result = $apiInstance->emailValidationSingleValidationGet($email, $result_type); |
| 55 | + print_r($result); |
| 56 | +} catch (Exception $e) { |
| 57 | + echo 'Exception when calling EmailValidationApi->emailValidationSingleValidationGet: ', $e->getMessage(), PHP_EOL; |
| 58 | +} |
| 59 | +``` |
| 60 | + |
| 61 | +### Parameters |
| 62 | + |
| 63 | +Name | Type | Description | Notes |
| 64 | +------------- | ------------- | ------------- | ------------- |
| 65 | + **email** | **string**| | |
| 66 | + **result_type** | [**\OpenAPI\Client\Model\ResultType**](../Model/.md)| ResultTypeDescription | [optional] |
| 67 | + |
| 68 | +### Return type |
| 69 | + |
| 70 | +[**\OpenAPI\Client\Model\EmailResponse**](../Model/EmailResponse.md) |
| 71 | + |
| 72 | +### Authorization |
| 73 | + |
| 74 | +[AuthKey](../../README.md#AuthKey), [RapidApiKey](../../README.md#RapidApiKey), [RapidApiSecret](../../README.md#RapidApiSecret) |
| 75 | + |
| 76 | +### HTTP request headers |
| 77 | + |
| 78 | +- **Content-Type**: Not defined |
| 79 | +- **Accept**: `application/json` |
| 80 | + |
| 81 | +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) |
| 82 | +[[Back to Model list]](../../README.md#models) |
| 83 | +[[Back to README]](../../README.md) |
| 84 | + |
| 85 | +## `emailValidationSingleValidationPost()` |
| 86 | + |
| 87 | +```php |
| 88 | +emailValidationSingleValidationPost($body): \OpenAPI\Client\Model\EmailResponse |
| 89 | +``` |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | +### Example |
| 94 | + |
| 95 | +```php |
| 96 | +<?php |
| 97 | +require_once(__DIR__ . '/vendor/autoload.php'); |
| 98 | + |
| 99 | + |
| 100 | +// Configure API key authorization: AuthKey |
| 101 | +$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY'); |
| 102 | +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 103 | +// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer'); |
| 104 | + |
| 105 | +// Configure API key authorization: RapidApiKey |
| 106 | +$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('X-RapidAPI-Key', 'YOUR_API_KEY'); |
| 107 | +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 108 | +// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-RapidAPI-Key', 'Bearer'); |
| 109 | + |
| 110 | +// Configure API key authorization: RapidApiSecret |
| 111 | +$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('X-RapidAPI-Proxy-Secret', 'YOUR_API_KEY'); |
| 112 | +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 113 | +// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-RapidAPI-Proxy-Secret', 'Bearer'); |
| 114 | + |
| 115 | + |
| 116 | +$apiInstance = new OpenAPI\Client\Api\EmailValidationApi( |
| 117 | + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. |
| 118 | + // This is optional, `GuzzleHttp\Client` will be used as default. |
| 119 | + new GuzzleHttp\Client(), |
| 120 | + $config |
| 121 | +); |
| 122 | +$body = new \OpenAPI\Client\Model\EmailRequest(); // \OpenAPI\Client\Model\EmailRequest |
| 123 | + |
| 124 | +try { |
| 125 | + $result = $apiInstance->emailValidationSingleValidationPost($body); |
| 126 | + print_r($result); |
| 127 | +} catch (Exception $e) { |
| 128 | + echo 'Exception when calling EmailValidationApi->emailValidationSingleValidationPost: ', $e->getMessage(), PHP_EOL; |
| 129 | +} |
| 130 | +``` |
| 131 | + |
| 132 | +### Parameters |
| 133 | + |
| 134 | +Name | Type | Description | Notes |
| 135 | +------------- | ------------- | ------------- | ------------- |
| 136 | + **body** | [**\OpenAPI\Client\Model\EmailRequest**](../Model/EmailRequest.md)| | |
| 137 | + |
| 138 | +### Return type |
| 139 | + |
| 140 | +[**\OpenAPI\Client\Model\EmailResponse**](../Model/EmailResponse.md) |
| 141 | + |
| 142 | +### Authorization |
| 143 | + |
| 144 | +[AuthKey](../../README.md#AuthKey), [RapidApiKey](../../README.md#RapidApiKey), [RapidApiSecret](../../README.md#RapidApiSecret) |
| 145 | + |
| 146 | +### HTTP request headers |
| 147 | + |
| 148 | +- **Content-Type**: `application/json` |
| 149 | +- **Accept**: `application/json` |
| 150 | + |
| 151 | +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) |
| 152 | +[[Back to Model list]](../../README.md#models) |
| 153 | +[[Back to README]](../../README.md) |
0 commit comments