Skip to content

Commit

Permalink
1.6.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudmersive committed Dec 13, 2020
1 parent 85b2786 commit a9b61d4
Show file tree
Hide file tree
Showing 16 changed files with 1,534 additions and 5 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.6.7
- Package version: 1.6.8


## Requirements
Expand Down Expand Up @@ -124,6 +124,7 @@ Class | Method | HTTP request | Description
*NameApi* | [**nameValidateLastName**](docs/Api/NameApi.md#namevalidatelastname) | **POST** /validate/name/last | Validate a last name
*PhoneNumberApi* | [**phoneNumberSyntaxOnly**](docs/Api/PhoneNumberApi.md#phonenumbersyntaxonly) | **POST** /validate/phonenumber/basic | Validate phone number (basic)
*TextInputApi* | [**textInputCheckXss**](docs/Api/TextInputApi.md#textinputcheckxss) | **POST** /validate/text-input/check/xss | Check text input for Cross-Site-Scripting (XSS) attacks
*TextInputApi* | [**textInputCheckXssBatch**](docs/Api/TextInputApi.md#textinputcheckxssbatch) | **POST** /validate/text-input/check-and-protect/xss/batch | Check and protect multiple text inputs for Cross-Site-Scripting (XSS) attacks in batch
*TextInputApi* | [**textInputProtectXss**](docs/Api/TextInputApi.md#textinputprotectxss) | **POST** /validate/text-input/protect/xss | Protect text input from Cross-Site-Scripting (XSS) attacks through normalization
*UserAgentApi* | [**userAgentParse**](docs/Api/UserAgentApi.md#useragentparse) | **POST** /validate/useragent/parse | Parse an HTTP User-Agent string, identify robots
*VatApi* | [**vatVatLookup**](docs/Api/VatApi.md#vatvatlookup) | **POST** /validate/vat/lookup | Validate a VAT number
Expand Down Expand Up @@ -190,6 +191,9 @@ Class | Method | HTTP request | Description
- [VatLookupRequest](docs/Model/VatLookupRequest.md)
- [VatLookupResponse](docs/Model/VatLookupResponse.md)
- [WhoisResponse](docs/Model/WhoisResponse.md)
- [XssProtectionBatchRequest](docs/Model/XssProtectionBatchRequest.md)
- [XssProtectionBatchResponse](docs/Model/XssProtectionBatchResponse.md)
- [XssProtectionRequestItem](docs/Model/XssProtectionRequestItem.md)
- [XssProtectionResult](docs/Model/XssProtectionResult.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.6.7",
"version": "1.6.8",
"description": "",
"keywords": [
"swagger",
Expand Down
56 changes: 56 additions & 0 deletions docs/Api/TextInputApi.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
------------- | ------------- | -------------
[**textInputCheckXss**](TextInputApi.md#textInputCheckXss) | **POST** /validate/text-input/check/xss | Check text input for Cross-Site-Scripting (XSS) attacks
[**textInputCheckXssBatch**](TextInputApi.md#textInputCheckXssBatch) | **POST** /validate/text-input/check-and-protect/xss/batch | Check and protect multiple text inputs for Cross-Site-Scripting (XSS) attacks in batch
[**textInputProtectXss**](TextInputApi.md#textInputProtectXss) | **POST** /validate/text-input/protect/xss | Protect text input from Cross-Site-Scripting (XSS) attacks through normalization


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)

# **textInputCheckXssBatch**
> \Swagger\Client\Model\XssProtectionBatchResponse textInputCheckXssBatch($value)
Check and protect multiple text inputs for Cross-Site-Scripting (XSS) attacks in batch

Detects XSS (Cross-Site-Scripting) attacks from multiple text input. Output preverses order of input items.

### 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\TextInputApi(
// 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
);
$value = new \Swagger\Client\Model\XssProtectionBatchRequest(); // \Swagger\Client\Model\XssProtectionBatchRequest | User-facing text input.

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

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**value** | [**\Swagger\Client\Model\XssProtectionBatchRequest**](../Model/XssProtectionBatchRequest.md)| User-facing text input. |

### Return type

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

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

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**request_items** | [**\Swagger\Client\Model\XssProtectionRequestItem[]**](XssProtectionRequestItem.md) | Multiple items to protect for XSS | [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)


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

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**result_items** | [**\Swagger\Client\Model\XssProtectionResult[]**](XssProtectionResult.md) | Results from performing a batch XSS protection operation | [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)


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

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**input_text** | **string** | Individual input text item to protect from XSS | [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)


Loading

0 comments on commit a9b61d4

Please sign in to comment.