Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cloudmersive-validate-api-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudmersive-validate-api-client

  • 2.2.6
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

cloudmersive-validate-api-client

CloudmersiveValidateApiClient - the Ruby gem for the validateapi

The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.

This SDK is automatically generated by the Swagger Codegen project:

  • API version: v1
  • Package version: 2.2.6
  • Build package: io.swagger.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build cloudmersive-validate-api-client.gemspec

Then either install the gem locally:

gem install ./cloudmersive-validate-api-client-2.2.6.gem

(for development, run gem install --dev ./cloudmersive-validate-api-client-2.2.6.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'cloudmersive-validate-api-client', '~> 2.2.6'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'cloudmersive-validate-api-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'cloudmersive-validate-api-client'

# Setup authorization
CloudmersiveValidateApiClient.configure do |config|
  # Configure API key authorization: Apikey
  config.api_key['Apikey'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['Apikey'] = 'Bearer'
end

api_instance = CloudmersiveValidateApiClient::AddressApi.new

input = CloudmersiveValidateApiClient::ValidateCountryRequest.new # ValidateCountryRequest | Input request


begin
  #Check if a country is a member of the European Union (EU)
  result = api_instance.address_check_eu_membership(input)
  p result
rescue CloudmersiveValidateApiClient::ApiError => e
  puts "Exception when calling AddressApi->address_check_eu_membership: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api.cloudmersive.com

ClassMethodHTTP requestDescription
CloudmersiveValidateApiClient::AddressApiaddress_check_eu_membershipPOST /validate/address/country/check-eu-membershipCheck if a country is a member of the European Union (EU)
CloudmersiveValidateApiClient::AddressApiaddress_countryPOST /validate/address/countryValidate and normalize country information, return ISO 3166-1 country codes and country name
CloudmersiveValidateApiClient::AddressApiaddress_country_listPOST /validate/address/country/listGet a list of ISO 3166-1 countries
CloudmersiveValidateApiClient::AddressApiaddress_geocodePOST /validate/address/geocodeGeocode a street address into latitude and longitude
CloudmersiveValidateApiClient::AddressApiaddress_get_country_currencyPOST /validate/address/country/get-currencyGet the currency of the input country
CloudmersiveValidateApiClient::AddressApiaddress_get_country_regionPOST /validate/address/country/get-regionGet the region, subregion and continent of the country
CloudmersiveValidateApiClient::AddressApiaddress_get_timezonePOST /validate/address/country/get-timezonesGets IANA/Olsen time zones for a country
CloudmersiveValidateApiClient::AddressApiaddress_normalize_addressPOST /validate/address/street-address/normalizeNormalize a street address
CloudmersiveValidateApiClient::AddressApiaddress_parse_stringPOST /validate/address/parseParse an unstructured input text string into an international, formatted address
CloudmersiveValidateApiClient::AddressApiaddress_reverse_geocode_addressPOST /validate/address/geocode/reverseReverse geocode a lattitude and longitude into an address
CloudmersiveValidateApiClient::AddressApiaddress_validate_addressPOST /validate/address/street-addressValidate a street address
CloudmersiveValidateApiClient::AddressApiaddress_validate_cityPOST /validate/address/cityValidate a City and State/Province combination, get location information about it
CloudmersiveValidateApiClient::AddressApiaddress_validate_postal_codePOST /validate/address/postal-codeValidate a postal code, get location information about it
CloudmersiveValidateApiClient::AddressApiaddress_validate_statePOST /validate/address/stateValidate a state or province, name or abbreviation, get location information about it
CloudmersiveValidateApiClient::DateTimeApidate_time_get_now_simpleGET /validate/date-time/get/nowGet current date and time as of now
CloudmersiveValidateApiClient::DateTimeApidate_time_get_public_holidaysPOST /validate/date-time/get/holidaysGet public holidays in the specified country and year
CloudmersiveValidateApiClient::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
CloudmersiveValidateApiClient::DateTimeApidate_time_parse_standard_date_timePOST /validate/date-time/parse/date-time/structuredParses a standardized date and time string into a date and time
CloudmersiveValidateApiClient::DomainApidomain_checkPOST /validate/domain/checkValidate a domain name
CloudmersiveValidateApiClient::DomainApidomain_get_top_level_domain_from_urlPOST /validate/domain/url/get-top-level-domainGet top-level domain name from URL
CloudmersiveValidateApiClient::DomainApidomain_is_admin_pathPOST /validate/domain/url/is-admin-pathCheck if path is a high-risk or vulnerable server administration path
CloudmersiveValidateApiClient::DomainApidomain_phishing_checkPOST /validate/domain/url/phishing-threat-checkCheck a URL for Phishing threats
CloudmersiveValidateApiClient::DomainApidomain_postPOST /validate/domain/whoisGet WHOIS information for a domain
CloudmersiveValidateApiClient::DomainApidomain_quality_scorePOST /validate/domain/quality-scoreValidate a domain name's quality score
CloudmersiveValidateApiClient::DomainApidomain_safety_checkPOST /validate/domain/url/safety-threat-checkCheck a URL for safety threats
CloudmersiveValidateApiClient::DomainApidomain_ssrf_checkPOST /validate/domain/url/ssrf-threat-checkCheck a URL for SSRF threats
CloudmersiveValidateApiClient::DomainApidomain_ssrf_check_batchPOST /validate/domain/url/ssrf-threat-check/batchCheck a URL for SSRF threats in batches
CloudmersiveValidateApiClient::DomainApidomain_url_fullPOST /validate/domain/url/fullValidate a URL fully
CloudmersiveValidateApiClient::DomainApidomain_url_html_ssrf_checkPOST /validate/domain/url/ssrf-threat-check/html-embeddedCheck a URL for HTML embedded SSRF threats
CloudmersiveValidateApiClient::DomainApidomain_url_syntax_onlyPOST /validate/domain/url/syntax-onlyValidate a URL syntactically
CloudmersiveValidateApiClient::EmailApiemail_address_get_serversPOST /validate/email/address/serversPartially check whether an email address is valid
CloudmersiveValidateApiClient::EmailApiemail_full_validationPOST /validate/email/address/fullFully validate an email address
CloudmersiveValidateApiClient::EmailApiemail_postPOST /validate/email/address/syntaxOnlyValidate email adddress for syntactic correctness only
CloudmersiveValidateApiClient::IPAddressApii_p_address_geolocate_street_addressPOST /validate/ip/geolocate/street-addressGeolocate an IP address to a street address
CloudmersiveValidateApiClient::IPAddressApii_p_address_ip_intelligencePOST /validate/ip/intelligenceGet intelligence on an IP address
CloudmersiveValidateApiClient::IPAddressApii_p_address_is_botPOST /validate/ip/is-botCheck if IP address is a Bot client
CloudmersiveValidateApiClient::IPAddressApii_p_address_is_threatPOST /validate/ip/is-threatCheck if IP address is a known threat
CloudmersiveValidateApiClient::IPAddressApii_p_address_is_tor_nodePOST /validate/ip/is-tor-nodeCheck if IP address is a Tor node server
CloudmersiveValidateApiClient::IPAddressApii_p_address_postPOST /validate/ip/geolocateGeolocate an IP address
CloudmersiveValidateApiClient::IPAddressApii_p_address_reverse_domain_lookupPOST /validate/ip/reverse-domain-lookupPerform a reverse domain name (DNS) lookup on an IP address
CloudmersiveValidateApiClient::LeadEnrichmentApilead_enrichment_enrich_leadPOST /validate/lead-enrichment/lead/enrichEnrich an input lead with additional fields of data
CloudmersiveValidateApiClient::LeadEnrichmentApilead_enrichment_get_company_informationPOST /validate/lead-enrichment/lead/email/company-informationGet company information from email address
CloudmersiveValidateApiClient::NameApiname_get_genderPOST /validate/name/get-genderGet the gender of a first name
CloudmersiveValidateApiClient::NameApiname_identifierPOST /validate/name/identifierValidate a code identifier
CloudmersiveValidateApiClient::NameApiname_validate_first_namePOST /validate/name/firstValidate a first name
CloudmersiveValidateApiClient::NameApiname_validate_full_namePOST /validate/name/full-nameParse and validate a full name
CloudmersiveValidateApiClient::NameApiname_validate_last_namePOST /validate/name/lastValidate a last name
CloudmersiveValidateApiClient::PhoneNumberApiphone_number_syntax_onlyPOST /validate/phonenumber/basicValidate phone number (basic)
CloudmersiveValidateApiClient::TextInputApitext_input_check_html_ssrfPOST /validate/text-input/html/check/ssrfProtect html input from Server-side Request Forgery (SSRF) attacks
CloudmersiveValidateApiClient::TextInputApitext_input_check_sql_injectionPOST /validate/text-input/check/sql-injectionCheck text input for SQL Injection (SQLI) attacks
CloudmersiveValidateApiClient::TextInputApitext_input_check_sql_injection_batchPOST /validate/text-input/check/sql-injection/batchCheck and protect multiple text inputs for SQL Injection (SQLI) attacks in batch
CloudmersiveValidateApiClient::TextInputApitext_input_check_xssPOST /validate/text-input/check/xssCheck text input for Cross-Site-Scripting (XSS) attacks
CloudmersiveValidateApiClient::TextInputApitext_input_check_xss_batchPOST /validate/text-input/check-and-protect/xss/batchCheck and protect multiple text inputs for Cross-Site-Scripting (XSS) attacks in batch
CloudmersiveValidateApiClient::TextInputApitext_input_check_xxePOST /validate/text-input/check/xxeProtect text input from XML External Entity (XXE) attacks
CloudmersiveValidateApiClient::TextInputApitext_input_check_xxe_batchPOST /validate/text-input/check/xxe/batchProtect text input from XML External Entity (XXE) attacks
CloudmersiveValidateApiClient::TextInputApitext_input_protect_xssPOST /validate/text-input/protect/xssProtect text input from Cross-Site-Scripting (XSS) attacks through normalization
CloudmersiveValidateApiClient::UserAgentApiuser_agent_parsePOST /validate/useragent/parseParse an HTTP User-Agent string, identify robots
CloudmersiveValidateApiClient::VatApivat_vat_lookupPOST /validate/vat/lookupValidate a VAT number

Documentation for Models

Documentation for Authorization

Apikey

  • Type: API key
  • API key parameter name: Apikey
  • Location: HTTP header

FAQs

Package last updated on 03 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc