Skip to content

Commit

Permalink
1.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudmersive committed Dec 29, 2019
1 parent 6e4e542 commit 6528175
Show file tree
Hide file tree
Showing 19 changed files with 1,806 additions and 11 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The validation APIs help you validate data. Check if an E-mail address is real.
[Cloudmersive Validation API](https://www.cloudmersive.com/validate-api) provides data validation capabilities for validating email addresses, phone numbers, IP addresses, and many other types of business data.

- API version: v1
- Package version: 1.5.3
- Package version: 1.5.4


## Requirements
Expand Down Expand Up @@ -87,6 +87,7 @@ All URIs are relative to *https://api.cloudmersive.com*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AddressApi* | [**addressCountry**](docs/Api/AddressApi.md#addresscountry) | **POST** /validate/address/country | Validate and normalize country information, return ISO 3166-1 country codes and country name
*AddressApi* | [**addressGetTimezone**](docs/Api/AddressApi.md#addressgettimezone) | **POST** /validate/address/country/get-timezones | Gets IANA/Olsen time zones for a country
*AddressApi* | [**addressParseString**](docs/Api/AddressApi.md#addressparsestring) | **POST** /validate/address/parse | Parse an unstructured input text string into an international, formatted address
*DomainApi* | [**domainCheck**](docs/Api/DomainApi.md#domaincheck) | **POST** /validate/domain/check | Validate a domain name
*DomainApi* | [**domainPost**](docs/Api/DomainApi.md#domainpost) | **POST** /validate/domain/whois | Get WHOIS information for a domain
Expand Down Expand Up @@ -120,6 +121,8 @@ Class | Method | HTTP request | Description
- [GeolocateResponse](docs/Model/GeolocateResponse.md)
- [GetGenderRequest](docs/Model/GetGenderRequest.md)
- [GetGenderResponse](docs/Model/GetGenderResponse.md)
- [GetTimezonesRequest](docs/Model/GetTimezonesRequest.md)
- [GetTimezonesResponse](docs/Model/GetTimezonesResponse.md)
- [LastNameValidationRequest](docs/Model/LastNameValidationRequest.md)
- [LastNameValidationResponse](docs/Model/LastNameValidationResponse.md)
- [LeadEnrichmentRequest](docs/Model/LeadEnrichmentRequest.md)
Expand All @@ -128,6 +131,7 @@ Class | Method | HTTP request | Description
- [ParseAddressResponse](docs/Model/ParseAddressResponse.md)
- [PhoneNumberValidateRequest](docs/Model/PhoneNumberValidateRequest.md)
- [PhoneNumberValidationResponse](docs/Model/PhoneNumberValidationResponse.md)
- [Timezone](docs/Model/Timezone.md)
- [UserAgentValidateRequest](docs/Model/UserAgentValidateRequest.md)
- [UserAgentValidateResponse](docs/Model/UserAgentValidateResponse.md)
- [ValidateCountryRequest](docs/Model/ValidateCountryRequest.md)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudmersive/cloudmersive_validate_api_client",
"version": "1.5.3",
"version": "1.5.4",
"description": "",
"keywords": [
"swagger",
Expand Down
58 changes: 57 additions & 1 deletion docs/Api/AddressApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All URIs are relative to *https://api.cloudmersive.com*
Method | HTTP request | Description
------------- | ------------- | -------------
[**addressCountry**](AddressApi.md#addressCountry) | **POST** /validate/address/country | Validate and normalize country information, return ISO 3166-1 country codes and country name
[**addressGetTimezone**](AddressApi.md#addressGetTimezone) | **POST** /validate/address/country/get-timezones | Gets IANA/Olsen time zones for a country
[**addressParseString**](AddressApi.md#addressParseString) | **POST** /validate/address/parse | Parse an unstructured input text string into an international, formatted address


Expand All @@ -13,7 +14,7 @@ Method | HTTP request | Description
Validate and normalize country information, return ISO 3166-1 country codes and country name

Validates and normalizes country information, and returns key information about a country.
Validates and normalizes country information, and returns key information about a country. Also returns distinct time zones in the country.

### Example
```php
Expand Down Expand Up @@ -63,6 +64,61 @@ Name | Type | Description | Notes

[[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)

# **addressGetTimezone**
> \Swagger\Client\Model\GetTimezonesResponse addressGetTimezone($input)
Gets IANA/Olsen time zones for a country

Gets the IANA/Olsen time zones for a country.

### 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\AddressApi(
// 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\GetTimezonesRequest(); // \Swagger\Client\Model\GetTimezonesRequest | Input request

try {
$result = $apiInstance->addressGetTimezone($input);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AddressApi->addressGetTimezone: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**input** | [**\Swagger\Client\Model\GetTimezonesRequest**](../Model/GetTimezonesRequest.md)| Input request |

### Return type

[**\Swagger\Client\Model\GetTimezonesResponse**](../Model/GetTimezonesResponse.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)

# **addressParseString**
> \Swagger\Client\Model\ParseAddressResponse addressParseString($input)
Expand Down
10 changes: 10 additions & 0 deletions docs/Model/GetTimezonesRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# GetTimezonesRequest

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**country_code_or_name** | **string** | Can be the two-letter, three-letter country codes or country name | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


15 changes: 15 additions & 0 deletions docs/Model/GetTimezonesResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# GetTimezonesResponse

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**successful** | **bool** | True if successful, false otherwise | [optional]
**country_full_name** | **string** | Full name of the country | [optional]
**iso_two_letter_code** | **string** | Two-letter ISO 3166-1 country code | [optional]
**fips_two_letter_code** | **string** | Two-letter FIPS 10-4 country code | [optional]
**three_letter_code** | **string** | Three-letter ISO 3166-1 country code | [optional]
**timezones** | [**\Swagger\Client\Model\Timezone[]**](Timezone.md) | Time zones (IANA/Olsen) in the country | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions docs/Model/Timezone.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Timezone

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **string** | Name of the Time Zone | [optional]
**base_utc_offset** | **string** | UTC offset for this time zone | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


1 change: 1 addition & 0 deletions docs/Model/ValidateCountryResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
**iso_two_letter_code** | **string** | Two-letter ISO 3166-1 country code | [optional]
**fips_two_letter_code** | **string** | Two-letter FIPS 10-4 country code | [optional]
**three_letter_code** | **string** | Three-letter ISO 3166-1 country code | [optional]
**timezones** | [**\Swagger\Client\Model\Timezone[]**](Timezone.md) | Time zones (IANA/Olsen) in the country | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Loading

0 comments on commit 6528175

Please sign in to comment.