有效

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

(您可能需要使用根权限运行pipsudo 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

ClassMethodHTTP requestDescription
AddressApiaddress_check_eu_membershipPOST /validate/address/country/check-eu-membershipCheck if a country is a member of the European Union (EU)
AddressApiaddress_countryPOST /validate/address/countryValidate and normalize country information, return ISO 3166-1 country codes and country name
AddressApiaddress_country_listPOST /validate/address/country/listGet a list of ISO 3166-1 countries
AddressApiaddress_geocodePOST /validate/address/geocodeGeocode a street address into latitude and longitude
AddressApiaddress_get_country_currencyPOST /validate/address/country/get-currencyGet the currency of the input country
AddressApiaddress_get_country_regionPOST /validate/address/country/get-regionGet the region, subregion and continent of the country
AddressApiaddress_get_timezonePOST /validate/address/country/get-timezonesGets IANA/Olsen time zones for a country
AddressApiaddress_normalize_addressPOST /validate/address/street-address/normalizeNormalize a street address
AddressApiaddress_parse_stringPOST /validate/address/parseParse an unstructured input text string into an international, formatted address
AddressApiaddress_reverse_geocode_addressPOST /validate/address/geocode/reverseReverse geocode a lattitude and longitude into an address
AddressApiaddress_validate_addressPOST /validate/address/street-addressValidate a street address
AddressApiaddress_validate_cityPOST /validate/address/cityValidate a City and State/Province combination, get location information about it
AddressApiaddress_validate_postal_codePOST /validate/address/postal-codeValidate a postal code, get location information about it
AddressApiaddress_validate_statePOST /validate/address/stateValidate a state or province, name or abbreviation, get location information about it
DateTimeApidate_time_get_now_simpleGET /validate/date-time/get/nowGet current date and time as of now
DateTimeApidate_time_get_public_holidaysPOST /validate/date-time/get/holidaysGet public holidays in the specified country and year
DateTimeApidate_time_parse_natural_language_date_timePOST /validate/date-time/parse/date-time/natural-languageParses a free-form natural language date and time string into a date and time
DateTimeApidate_time_parse_standard_date_timePOST /validate/date-time/parse/date-time/structuredParses a standardized date and time string into a date and time
DomainApidomain_checkPOST /validate/domain/checkValidate a domain name
DomainApidomain_postPOST /validate/domain/whoisGet WHOIS information for a domain
DomainApidomain_quality_scorePOST /validate/domain/quality-scoreValidate a domain name's quality score
DomainApidomain_url_fullPOST /validate/domain/url/fullValidate a URL fully
DomainApidomain_url_syntax_onlyPOST /validate/domain/url/syntax-onlyValidate a URL syntactically
EmailApiemail_address_get_serversPOST /validate/email/address/serversPartially check whether an email address is valid
EmailApiemail_full_validationPOST /validate/email/address/fullFully validate an email address
EmailApiemail_postPOST /validate/email/address/syntaxOnlyValidate email adddress for syntactic correctness only
IPAddressApii_p_address_geolocate_street_addressPOST /validate/ip/geolocate/street-addressGeolocate an IP address to a street address
IPAddressApii_p_address_is_threatPOST /validate/ip/is-threatCheck if IP address is a known threat
IPAddressApii_p_address_is_tor_nodePOST /validate/ip/is-tor-nodeCheck if IP address is a Tor node server
IPAddressApii_p_address_postPOST /validate/ip/geolocateGeolocate an IP address
LeadEnrichmentApilead_enrichment_enrich_leadPOST /validate/lead-enrichment/lead/enrichEnrich an input lead with additional fields of data
NameApiname_get_genderPOST /validate/name/get-genderGet the gender of a first name
NameApiname_identifierPOST /validate/name/identifierValidate a code identifier
NameApiname_validate_first_namePOST /validate/name/firstValidate a first name
NameApiname_validate_full_namePOST /validate/name/full-nameParse and validate a full name
NameApiname_validate_last_namePOST /validate/name/lastValidate a last name
PhoneNumberApiphone_number_syntax_onlyPOST /validate/phonenumber/basicValidate phone number (basic)
TextInputApitext_input_check_xssPOST /validate/text-input/check/xssCheck text input for Cross-Site-Scripting (XSS) attacks
TextInputApitext_input_protect_xssPOST /validate/text-input/protect/xssProtect text input from Cross-Site-Scripting (XSS) attacks through normalization
UserAgentApiuser_agent_parsePOST /validate/useragent/parseParse an HTTP User-Agent string, identify robots
VatApivat_vat_lookupPOST /validate/vat/lookupValidate a VAT number

模型文档

授权文件

阿皮基

  • Type:API密钥
  • API key参数名:Apikey
  • Location:HTTP头

作者

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java是用来加速集合中对象查找的哈希代码吗?   java在Servlet中执行后将JSP请求重定向到自身   JavaHTTPStatus415使用Ajax将Json数据发布到SpringMVC4也使用了SpringSecurity   java为什么谷歌应用引擎MySQL JDBC URL不与数据库连接?   多线程Java:强制停止ExecutorService线程   java使用For循环向组合框添加值   java子Git“内存不足”和“超出GC开销限制”   使用正则表达式运行计算器程序时出现java NumberFormatException   java MockMvc测试POST请求返回错误:实际调用有不同的参数:   java自动在虚拟机内移动鼠标,与真实的鼠标无关   当类位于类路径上时,java Surefire抛出SurefireReflectionException   java GroupLayout错误:找不到错误的行   SpringHibernateJava。lang.NoSuchFieldError:实例   从一个java密钥库生成多个个人证书的身份验证   java 1.6.013中的eclipse@WebServlet注释支持   java Spring Webservicetemplate连接重置错误   spring如何修复SqlRowSet上的“无效游标SQL异常”。Java中的Next()   java Websphere版本迁移