-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24f0fb9
commit 85b2786
Showing
42 changed files
with
6,066 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,228 @@ | ||
# Swagger\Client\DateTimeApi | ||
|
||
All URIs are relative to *https://api.cloudmersive.com* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**dateTimeGetNowSimple**](DateTimeApi.md#dateTimeGetNowSimple) | **GET** /validate/date-time/get/now | Get current date and time as of now | ||
[**dateTimeGetPublicHolidays**](DateTimeApi.md#dateTimeGetPublicHolidays) | **POST** /validate/date-time/get/holidays | Get public holidays in the specified country and year | ||
[**dateTimeParseNaturalLanguageDateTime**](DateTimeApi.md#dateTimeParseNaturalLanguageDateTime) | **POST** /validate/date-time/parse/date-time/natural-language | Parses a free-form natural language date and time string into a date and time | ||
[**dateTimeParseStandardDateTime**](DateTimeApi.md#dateTimeParseStandardDateTime) | **POST** /validate/date-time/parse/date-time/structured | Parses a standardized date and time string into a date and time | ||
|
||
|
||
# **dateTimeGetNowSimple** | ||
> \Swagger\Client\Model\DateTimeNowResult dateTimeGetNowSimple() | ||
Get current date and time as of now | ||
|
||
Gets the current date and time. Response time is syncronized with atomic clocks, and represents a monotonic, centrally available, consistent clock. | ||
|
||
### Example | ||
```php | ||
<?php | ||
require_once(__DIR__ . '/vendor/autoload.php'); | ||
|
||
// Configure API key authorization: Apikey | ||
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY'); | ||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed | ||
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer'); | ||
|
||
$apiInstance = new Swagger\Client\Api\DateTimeApi( | ||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. | ||
// This is optional, `GuzzleHttp\Client` will be used as default. | ||
new GuzzleHttp\Client(), | ||
$config | ||
); | ||
|
||
try { | ||
$result = $apiInstance->dateTimeGetNowSimple(); | ||
print_r($result); | ||
} catch (Exception $e) { | ||
echo 'Exception when calling DateTimeApi->dateTimeGetNowSimple: ', $e->getMessage(), PHP_EOL; | ||
} | ||
?> | ||
``` | ||
|
||
### Parameters | ||
This endpoint does not need any parameter. | ||
|
||
### Return type | ||
|
||
[**\Swagger\Client\Model\DateTimeNowResult**](../Model/DateTimeNowResult.md) | ||
|
||
### Authorization | ||
|
||
[Apikey](../../README.md#Apikey) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: Not defined | ||
- **Accept**: application/json, text/json, application/xml, text/xml | ||
|
||
[[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) | ||
|
||
# **dateTimeGetPublicHolidays** | ||
> \Swagger\Client\Model\PublicHolidaysResponse dateTimeGetPublicHolidays($input) | ||
Get public holidays in the specified country and year | ||
|
||
Enumerates all public holidays in a given country for a given year. Supports over 100 countries. | ||
|
||
### Example | ||
```php | ||
<?php | ||
require_once(__DIR__ . '/vendor/autoload.php'); | ||
|
||
// Configure API key authorization: Apikey | ||
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY'); | ||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed | ||
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer'); | ||
|
||
$apiInstance = new Swagger\Client\Api\DateTimeApi( | ||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. | ||
// This is optional, `GuzzleHttp\Client` will be used as default. | ||
new GuzzleHttp\Client(), | ||
$config | ||
); | ||
$input = new \Swagger\Client\Model\GetPublicHolidaysRequest(); // \Swagger\Client\Model\GetPublicHolidaysRequest | Input request | ||
|
||
try { | ||
$result = $apiInstance->dateTimeGetPublicHolidays($input); | ||
print_r($result); | ||
} catch (Exception $e) { | ||
echo 'Exception when calling DateTimeApi->dateTimeGetPublicHolidays: ', $e->getMessage(), PHP_EOL; | ||
} | ||
?> | ||
``` | ||
|
||
### Parameters | ||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**input** | [**\Swagger\Client\Model\GetPublicHolidaysRequest**](../Model/GetPublicHolidaysRequest.md)| Input request | | ||
|
||
### Return type | ||
|
||
[**\Swagger\Client\Model\PublicHolidaysResponse**](../Model/PublicHolidaysResponse.md) | ||
|
||
### Authorization | ||
|
||
[Apikey](../../README.md#Apikey) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/json, text/json | ||
- **Accept**: application/json, text/json, application/xml, text/xml | ||
|
||
[[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) | ||
|
||
# **dateTimeParseNaturalLanguageDateTime** | ||
> \Swagger\Client\Model\DateTimeStandardizedParseResponse dateTimeParseNaturalLanguageDateTime($input) | ||
Parses a free-form natural language date and time string into a date and time | ||
|
||
Parses an unstructured, free-form, natural language date and time string into a date time object. This is intended for lightweight human-entered input, such as \"tomorrow at 3pm\" or \"tuesday\". | ||
|
||
### Example | ||
```php | ||
<?php | ||
require_once(__DIR__ . '/vendor/autoload.php'); | ||
|
||
// Configure API key authorization: Apikey | ||
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY'); | ||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed | ||
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer'); | ||
|
||
$apiInstance = new Swagger\Client\Api\DateTimeApi( | ||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. | ||
// This is optional, `GuzzleHttp\Client` will be used as default. | ||
new GuzzleHttp\Client(), | ||
$config | ||
); | ||
$input = new \Swagger\Client\Model\DateTimeNaturalLanguageParseRequest(); // \Swagger\Client\Model\DateTimeNaturalLanguageParseRequest | Input request | ||
|
||
try { | ||
$result = $apiInstance->dateTimeParseNaturalLanguageDateTime($input); | ||
print_r($result); | ||
} catch (Exception $e) { | ||
echo 'Exception when calling DateTimeApi->dateTimeParseNaturalLanguageDateTime: ', $e->getMessage(), PHP_EOL; | ||
} | ||
?> | ||
``` | ||
|
||
### Parameters | ||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**input** | [**\Swagger\Client\Model\DateTimeNaturalLanguageParseRequest**](../Model/DateTimeNaturalLanguageParseRequest.md)| Input request | | ||
|
||
### Return type | ||
|
||
[**\Swagger\Client\Model\DateTimeStandardizedParseResponse**](../Model/DateTimeStandardizedParseResponse.md) | ||
|
||
### Authorization | ||
|
||
[Apikey](../../README.md#Apikey) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/json, text/json | ||
- **Accept**: application/json, text/json, application/xml, text/xml | ||
|
||
[[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) | ||
|
||
# **dateTimeParseStandardDateTime** | ||
> \Swagger\Client\Model\DateTimeStandardizedParseResponse dateTimeParseStandardDateTime($input) | ||
Parses a standardized date and time string into a date and time | ||
|
||
Parses a structured date and time string into a date time object. This is intended for standardized date strings that adhere to formatting conventions, rather than natural language input. | ||
|
||
### Example | ||
```php | ||
<?php | ||
require_once(__DIR__ . '/vendor/autoload.php'); | ||
|
||
// Configure API key authorization: Apikey | ||
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY'); | ||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed | ||
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer'); | ||
|
||
$apiInstance = new Swagger\Client\Api\DateTimeApi( | ||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. | ||
// This is optional, `GuzzleHttp\Client` will be used as default. | ||
new GuzzleHttp\Client(), | ||
$config | ||
); | ||
$input = new \Swagger\Client\Model\DateTimeStandardizedParseRequest(); // \Swagger\Client\Model\DateTimeStandardizedParseRequest | Input request | ||
|
||
try { | ||
$result = $apiInstance->dateTimeParseStandardDateTime($input); | ||
print_r($result); | ||
} catch (Exception $e) { | ||
echo 'Exception when calling DateTimeApi->dateTimeParseStandardDateTime: ', $e->getMessage(), PHP_EOL; | ||
} | ||
?> | ||
``` | ||
|
||
### Parameters | ||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**input** | [**\Swagger\Client\Model\DateTimeStandardizedParseRequest**](../Model/DateTimeStandardizedParseRequest.md)| Input request | | ||
|
||
### Return type | ||
|
||
[**\Swagger\Client\Model\DateTimeStandardizedParseResponse**](../Model/DateTimeStandardizedParseResponse.md) | ||
|
||
### Authorization | ||
|
||
[Apikey](../../README.md#Apikey) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/json, text/json | ||
- **Accept**: application/json, text/json, application/xml, text/xml | ||
|
||
[[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) | ||
|
Oops, something went wrong.