-
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
c6cf952
commit 717b16c
Showing
42 changed files
with
4,548 additions
and
26 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
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,64 @@ | ||
# Swagger\Client\UserAgentApi | ||
|
||
All URIs are relative to *https://api.cloudmersive.com* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**userAgentParse**](UserAgentApi.md#userAgentParse) | **POST** /validate/useragent/parse | Parse an HTTP User-Agent string, identify robots | ||
|
||
|
||
# **userAgentParse** | ||
> \Swagger\Client\Model\UserAgentValidateResponse userAgentParse($request) | ||
Parse an HTTP User-Agent string, identify robots | ||
|
||
Uses a parsing system and database to parse the User-Agent into its structured component parts, such as Browser, Browser Version, Browser Engine, Operating System, and importantly, Robot identification. | ||
|
||
### 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\UserAgentApi( | ||
// 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 | ||
); | ||
$request = new \Swagger\Client\Model\UserAgentValidateRequest(); // \Swagger\Client\Model\UserAgentValidateRequest | Input parse request | ||
|
||
try { | ||
$result = $apiInstance->userAgentParse($request); | ||
print_r($result); | ||
} catch (Exception $e) { | ||
echo 'Exception when calling UserAgentApi->userAgentParse: ', $e->getMessage(), PHP_EOL; | ||
} | ||
?> | ||
``` | ||
|
||
### Parameters | ||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**request** | [**\Swagger\Client\Model\UserAgentValidateRequest**](../Model/UserAgentValidateRequest.md)| Input parse request | | ||
|
||
### Return type | ||
|
||
[**\Swagger\Client\Model\UserAgentValidateResponse**](../Model/UserAgentValidateResponse.md) | ||
|
||
### Authorization | ||
|
||
[Apikey](../../README.md#Apikey) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded | ||
- **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) | ||
|
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,10 @@ | ||
# UserAgentValidateRequest | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**user_agent_string** | **string** | The user agent string you wish to parse and validate | [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) | ||
|
||
|
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,23 @@ | ||
# UserAgentValidateResponse | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**successful** | **bool** | True if the operation was successful, false otherwise | [optional] | ||
**is_bot** | **bool** | True if the request is a known robot, false otherwise | [optional] | ||
**bot_name** | **string** | Optional; name of the robot if the request was from a known robot, otherwise null | [optional] | ||
**bot_url** | **string** | Optional; if available, the URL to the robot | [optional] | ||
**operating_system** | **string** | Operating System of the User-Agent (e.g. Windows) | [optional] | ||
**operating_system_cpu_platform** | **string** | The CPU platform of the User-Agent (e.g. x64) | [optional] | ||
**operating_system_version** | **string** | The version of the operating system of the User-Agent (e.g. \"10\" for Windows 10) | [optional] | ||
**device_type** | **string** | Device type of the User-Agent; possible values are \"DESKTOP\", \"SMARTPHONE\", \"TABLET\" | [optional] | ||
**device_brand_name** | **string** | Brand name of the User-Agent | [optional] | ||
**device_model** | **string** | Model name or number of the User-Agent | [optional] | ||
**browser_name** | **string** | Name of the Browser | [optional] | ||
**browser_version** | **string** | Version of the Browser | [optional] | ||
**browser_engine_name** | **string** | Name of the Browser Engine | [optional] | ||
**browser_engine_version** | **string** | Version of the Browser Engine | [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) | ||
|
||
|
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,17 @@ | ||
# ValidateIdentifierRequest | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**input** | **string** | Text string identifier input | [optional] | ||
**allow_whitespace** | **bool** | True if whitespace is allowed in the identifier, false otherwise | [optional] | ||
**allow_hyphens** | **bool** | True if hyphens are allowd in the identifier, false otherwise | [optional] | ||
**allow_underscore** | **bool** | True if underscores are allowed in the identifier, false otherwise | [optional] | ||
**allow_numbers** | **bool** | True if numbers are allowed in the identifier, false otherwise | [optional] | ||
**allow_periods** | **bool** | True if periods are allowed in the identifier, false otherwise | [optional] | ||
**max_length** | **int** | Optional; maximum length, if any, of the identifier | [optional] | ||
**min_length** | **int** | Optional; minimum length, if any, of the identifier | [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) | ||
|
||
|
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,11 @@ | ||
# ValidateIdentifierResponse | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**valid_identifier** | **bool** | True if the input identifier is valid, false otherwise | [optional] | ||
**error** | **string** | Resulting error from the identifier validation; possible errors are: \"InputIsEmpty\", \"ContainsWhitespace\", \"ContainsNumbers\", \"ContainsHyphen\", \"ContainsUnderscore\", \"ContainsPeriod\", \"TooShort\", \"TooLong\", \"ContainsSpecialCharacters\" | [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) | ||
|
||
|
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,10 @@ | ||
# ValidateUrlRequestFull | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**url** | **string** | URL to validate | [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) | ||
|
||
|
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,14 @@ | ||
# ValidateUrlResponseFull | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**valid_url** | **bool** | True if the URL has valid syntax, a valid domain, a valid endpoint, and passes virus scan checks; false otherwise | [optional] | ||
**valid_syntax** | **bool** | True if the URL has valid syntax, false otherwise | [optional] | ||
**valid_domain** | **bool** | True if the domain name is valid and exists, false otherwise | [optional] | ||
**valid_endpoint** | **bool** | True if the endpoint is up and responsive and passes a virus scan check, false otherwise | [optional] | ||
**well_formed_url** | **string** | Well-formed version of the URL | [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) | ||
|
||
|
Oops, something went wrong.