有效
cloudmersive-validate-api-client的Python项目详细描述
cloudmersive_validate_api_客户端
验证API帮助您验证数据。检查电子邮件地址是否真实。检查域是否为真域。检查IP地址,甚至它所在的位置。所有这些以及更多内容都可以在验证API中找到。在
这个Python包为Cloudmersive Data Validation提供了一个本机API客户机
- API版本:v1
- 软件包版本:3.1.1
- 生成包:io.swagger.codegen.语言.PythonClientCodegen在
要求
Python 2.7和3.4+
安装和使用
pip安装
如果python包托管在Github上,则可以直接从Github安装
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(您可能需要使用根权限运行pip
:sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
然后导入包:
^{pr2}$设置工具
通过Setuptools安装。在
python setup.py install --user
(或sudo python setup.py install
为所有用户安装软件包)
然后导入包:
importcloudmersive_validate_api_client
入门
请按照installation procedure操作,然后运行以下命令:
from__future__importprint_functionimporttimeimportcloudmersive_validate_api_clientfromcloudmersive_validate_api_client.restimportApiExceptionfrompprintimportpprint# Configure API key authorization: Apikeyconfiguration=cloudmersive_validate_api_client.Configuration()configuration.api_key['Apikey']='YOUR_API_KEY'# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['Apikey'] = 'Bearer'# create an instance of the API classapi_instance=cloudmersive_validate_api_client.AddressApi(cloudmersive_validate_api_client.ApiClient(configuration))input=cloudmersive_validate_api_client.ValidateCountryRequest()# ValidateCountryRequest | Input requesttry:# Check if a country is a member of the European Union (EU)api_response=api_instance.address_check_eu_membership(input)pprint(api_response)exceptApiExceptionase:print("Exception when calling AddressApi->address_check_eu_membership: %s\n"%e)
API终结点文档
所有uri都是相对于https://api.cloudmersive.com
Class | Method | HTTP request | Description |
---|---|---|---|
AddressApi | address_check_eu_membership | POST /validate/address/country/check-eu-membership | Check if a country is a member of the European Union (EU) |
AddressApi | address_country | POST /validate/address/country | Validate and normalize country information, return ISO 3166-1 country codes and country name |
AddressApi | address_country_list | POST /validate/address/country/list | Get a list of ISO 3166-1 countries |
AddressApi | address_geocode | POST /validate/address/geocode | Geocode a street address into latitude and longitude |
AddressApi | address_get_country_currency | POST /validate/address/country/get-currency | Get the currency of the input country |
AddressApi | address_get_country_region | POST /validate/address/country/get-region | Get the region, subregion and continent of the country |
AddressApi | address_get_timezone | POST /validate/address/country/get-timezones | Gets IANA/Olsen time zones for a country |
AddressApi | address_normalize_address | POST /validate/address/street-address/normalize | Normalize a street address |
AddressApi | address_parse_string | POST /validate/address/parse | Parse an unstructured input text string into an international, formatted address |
AddressApi | address_reverse_geocode_address | POST /validate/address/geocode/reverse | Reverse geocode a lattitude and longitude into an address |
AddressApi | address_validate_address | POST /validate/address/street-address | Validate a street address |
AddressApi | address_validate_city | POST /validate/address/city | Validate a City and State/Province combination, get location information about it |
AddressApi | address_validate_postal_code | POST /validate/address/postal-code | Validate a postal code, get location information about it |
AddressApi | address_validate_state | POST /validate/address/state | Validate a state or province, name or abbreviation, get location information about it |
DateTimeApi | date_time_get_now_simple | GET /validate/date-time/get/now | Get current date and time as of now |
DateTimeApi | date_time_get_public_holidays | POST /validate/date-time/get/holidays | Get public holidays in the specified country and year |
DateTimeApi | date_time_parse_natural_language_date_time | POST /validate/date-time/parse/date-time/natural-language | Parses a free-form natural language date and time string into a date and time |
DateTimeApi | date_time_parse_standard_date_time | POST /validate/date-time/parse/date-time/structured | Parses a standardized date and time string into a date and time |
DomainApi | domain_check | POST /validate/domain/check | Validate a domain name |
DomainApi | domain_post | POST /validate/domain/whois | Get WHOIS information for a domain |
DomainApi | domain_quality_score | POST /validate/domain/quality-score | Validate a domain name's quality score |
DomainApi | domain_url_full | POST /validate/domain/url/full | Validate a URL fully |
DomainApi | domain_url_syntax_only | POST /validate/domain/url/syntax-only | Validate a URL syntactically |
EmailApi | email_address_get_servers | POST /validate/email/address/servers | Partially check whether an email address is valid |
EmailApi | email_full_validation | POST /validate/email/address/full | Fully validate an email address |
EmailApi | email_post | POST /validate/email/address/syntaxOnly | Validate email adddress for syntactic correctness only |
IPAddressApi | i_p_address_geolocate_street_address | POST /validate/ip/geolocate/street-address | Geolocate an IP address to a street address |
IPAddressApi | i_p_address_is_threat | POST /validate/ip/is-threat | Check if IP address is a known threat |
IPAddressApi | i_p_address_is_tor_node | POST /validate/ip/is-tor-node | Check if IP address is a Tor node server |
IPAddressApi | i_p_address_post | POST /validate/ip/geolocate | Geolocate an IP address |
LeadEnrichmentApi | lead_enrichment_enrich_lead | POST /validate/lead-enrichment/lead/enrich | Enrich an input lead with additional fields of data |
NameApi | name_get_gender | POST /validate/name/get-gender | Get the gender of a first name |
NameApi | name_identifier | POST /validate/name/identifier | Validate a code identifier |
NameApi | name_validate_first_name | POST /validate/name/first | Validate a first name |
NameApi | name_validate_full_name | POST /validate/name/full-name | Parse and validate a full name |
NameApi | name_validate_last_name | POST /validate/name/last | Validate a last name |
PhoneNumberApi | phone_number_syntax_only | POST /validate/phonenumber/basic | Validate phone number (basic) |
TextInputApi | text_input_check_xss | POST /validate/text-input/check/xss | Check text input for Cross-Site-Scripting (XSS) attacks |
TextInputApi | text_input_protect_xss | POST /validate/text-input/protect/xss | Protect text input from Cross-Site-Scripting (XSS) attacks through normalization |
UserAgentApi | user_agent_parse | POST /validate/useragent/parse | Parse an HTTP User-Agent string, identify robots |
VatApi | vat_vat_lookup | POST /validate/vat/lookup | Validate a VAT number |
模型文档
- AddressGetServersResponse
- AddressVerifySyntaxOnlyResponse
- CheckResponse
- CountryDetails
- CountryListResult
- DateTimeNaturalLanguageParseRequest
- DateTimeNowResult
- DateTimeStandardizedParseRequest
- DateTimeStandardizedParseResponse
- DomainQualityResponse
- FirstNameValidationRequest
- FirstNameValidationResponse
- FullEmailValidationResponse
- FullNameValidationRequest
- FullNameValidationResponse
- GeolocateResponse
- GeolocateStreetAddressResponse
- GetGenderRequest
- GetGenderResponse
- GetPublicHolidaysRequest
- GetTimezonesRequest
- GetTimezonesResponse
- IPThreatResponse
- LastNameValidationRequest
- LastNameValidationResponse
- LeadEnrichmentRequest
- LeadEnrichmentResponse
- NormalizeAddressResponse
- ParseAddressRequest
- ParseAddressResponse
- PhoneNumberValidateRequest
- PhoneNumberValidationResponse
- PublicHolidayOccurrence
- PublicHolidaysResponse
- ReverseGeocodeAddressRequest
- ReverseGeocodeAddressResponse
- Timezone
- TorNodeResponse
- UserAgentValidateRequest
- UserAgentValidateResponse
- ValidateAddressRequest
- ValidateAddressResponse
- ValidateCityRequest
- ValidateCityResponse
- ValidateCountryRequest
- ValidateCountryResponse
- ValidateIdentifierRequest
- ValidateIdentifierResponse
- ValidatePostalCodeRequest
- ValidatePostalCodeResponse
- ValidateStateRequest
- ValidateStateResponse
- ValidateUrlRequestFull
- ValidateUrlRequestSyntaxOnly
- ValidateUrlResponseFull
- ValidateUrlResponseSyntaxOnly
- VatLookupRequest
- VatLookupResponse
- WhoisResponse
- XssProtectionResult
授权文件
阿皮基
- Type:API密钥
- API key参数名:Apikey
- Location:HTTP头
作者
- 项目
标签: