cloudmersive / cloudmersive_validate_api_client
3.0.1
2023-07-02 02:30 UTC
Requires
- php: >=7.2.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
- dev-master
- 3.0.1
- 1.8.1
- 1.8.0
- 1.7.9
- 1.7.8
- 1.7.5
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.9
- 1.6.8
- 1.6.7
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.9
- 1.5.7
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.4.9
- 1.4.8
- 1.4.7
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.3.9
- dev-dependabot/composer/guzzlehttp/psr7-1.9.1
- dev-dependabot/composer/guzzlehttp/guzzle-6.5.8
This package is not auto-updated.
Last update: 2024-09-22 08:10:05 UTC
README
验证API帮助您验证数据。检查电子邮件地址是否真实。检查域名是否真实。检查IP地址以及其位置。所有这些都在验证API中可用。
Cloudmersive Validation API提供数据验证能力,用于验证电子邮件地址、电话号码、IP地址以及许多其他类型的业务数据。
- API版本:v1
- 包版本:3.0.1
要求
PHP 5.5及更高版本
安装与使用
Composer
要通过Composer安装绑定,请将以下内容添加到composer.json
{
"repositories": [
{
"type": "git",
"url": "https://github.com/cloudmersive/cloudmersive_validate_api_client.git"
}
],
"require": {
"cloudmersive/cloudmersive_validate_api_client": "*@dev"
}
}
然后运行composer install
手动安装
下载文件并包含autoload.php
require_once('/path/to/cloudmersive_validate_api_client/vendor/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门指南
请遵循安装过程,然后运行以下命令
<?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\ValidateCountryRequest(); // \Swagger\Client\Model\ValidateCountryRequest | Input request try { $result = $apiInstance->addressCheckEUMembership($input); print_r($result); } catch (Exception $e) { echo 'Exception when calling AddressApi->addressCheckEUMembership: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI相对于https://api.cloudmersive.com
模型文档
- AddressGetServersResponse
- AddressVerifySyntaxOnlyResponse
- BotCheckResponse
- CheckResponse
- CountryDetails
- CountryListResult
- DateTimeNaturalLanguageParseRequest
- DateTimeNowResult
- DateTimeStandardizedParseRequest
- DateTimeStandardizedParseResponse
- DomainQualityResponse
- EmailLead
- FirstNameValidationRequest
- FirstNameValidationResponse
- FullEmailValidationResponse
- FullNameValidationRequest
- FullNameValidationResponse
- GeolocateResponse
- GeolocateStreetAddressResponse
- GetGenderRequest
- GetGenderResponse
- GetPublicHolidaysRequest
- GetTimezonesRequest
- GetTimezonesResponse
- HtmlSsrfDetectionResult
- IPIntelligenceResponse
- IPReverseDNSLookupResponse
- IPThreatResponse
- IsAdminPathResponse
- LastNameValidationRequest
- LastNameValidationResponse
- LeadEnrichmentRequest
- LeadEnrichmentResponse
- NormalizeAddressResponse
- ParseAddressRequest
- ParseAddressResponse
- PhishingCheckRequest
- PhishingCheckResponse
- PhoneNumberValidateRequest
- PhoneNumberValidationResponse
- PublicHolidayOccurrence
- PublicHolidaysResponse
- ReverseGeocodeAddressRequest
- ReverseGeocodeAddressResponse
- SqlInjectionCheckBatchRequest
- SqlInjectionCheckBatchResponse
- SqlInjectionCheckRequestItem
- SqlInjectionDetectionResult
- Timezone
- TorNodeResponse
- UrlHtmlSsrfRequestFull
- UrlHtmlSsrfResponseFull
- UrlSafetyCheckRequestFull
- UrlSafetyCheckResponseFull
- UrlSsrfRequestBatch
- UrlSsrfRequestFull
- UrlSsrfResponseBatch
- UrlSsrfResponseFull
- UserAgentValidateRequest
- UserAgentValidateResponse
- ValidateAddressRequest
- ValidateAddressResponse
- ValidateCityRequest
- ValidateCityResponse
- ValidateCountryRequest
- ValidateCountryResponse
- ValidateIdentifierRequest
- ValidateIdentifierResponse
- ValidatePostalCodeRequest
- ValidatePostalCodeResponse
- ValidateStateRequest
- ValidateStateResponse
- ValidateUrlRequestFull
- ValidateUrlRequestSyntaxOnly
- ValidateUrlResponseFull
- ValidateUrlResponseSyntaxOnly
- VatLookupRequest
- VatLookupResponse
- WhoisResponse
- XssProtectionBatchRequest
- XssProtectionBatchResponse
- XssProtectionRequestItem
- XssProtectionResult
- XxeDetectionBatchRequest
- XxeDetectionBatchResponse
- XxeDetectionRequestItem
- XxeDetectionResult
授权文档
Apikey
- 类型:API密钥
- API密钥参数名称:Apikey
- 位置:HTTP头