1.4.8 • Published 11 months ago

cloudmersive-validate-api-client v1.4.8

Weekly downloads
118
License
Apache-2.0
Repository
-
Last release
11 months ago

cloudmersive-validate-api-client

CloudmersiveValidateApiClient - JavaScript client for cloudmersive-validate-api-client 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. Cloudmersive Validation 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.4.8

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install cloudmersive-validate-api-client --save
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

Finally, switch to the directory you want to use your cloudmersive-validate-api-client from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('cloudmersive-validate-api-client') in javascript files from the directory you ran the last command above from.

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually use this library):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var CloudmersiveValidateApiClient = require('cloudmersive-validate-api-client');

var defaultClient = CloudmersiveValidateApiClient.ApiClient.instance;

// Configure API key authorization: Apikey
var Apikey = defaultClient.authentications['Apikey'];
Apikey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Apikey.apiKeyPrefix['Apikey'] = "Token"

var api = new CloudmersiveValidateApiClient.AddressApi()

var input = new CloudmersiveValidateApiClient.ValidateCountryRequest(); // {ValidateCountryRequest} Input request


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addressCheckEUMembership(input, callback);

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
CloudmersiveValidateApiClient.AddressApiaddressCheckEUMembershipPOST /validate/address/country/check-eu-membershipCheck if a country is a member of the European Union (EU)
CloudmersiveValidateApiClient.AddressApiaddressCountryPOST /validate/address/countryValidate and normalize country information, return ISO 3166-1 country codes and country name
CloudmersiveValidateApiClient.AddressApiaddressCountryListPOST /validate/address/country/listGet a list of ISO 3166-1 countries
CloudmersiveValidateApiClient.AddressApiaddressGeocodePOST /validate/address/geocodeGeocode a street address into latitude and longitude
CloudmersiveValidateApiClient.AddressApiaddressGetCountryCurrencyPOST /validate/address/country/get-currencyGet the currency of the input country
CloudmersiveValidateApiClient.AddressApiaddressGetCountryRegionPOST /validate/address/country/get-regionGet the region, subregion and continent of the country
CloudmersiveValidateApiClient.AddressApiaddressGetTimezonePOST /validate/address/country/get-timezonesGets IANA/Olsen time zones for a country
CloudmersiveValidateApiClient.AddressApiaddressNormalizeAddressPOST /validate/address/street-address/normalizeNormalize a street address
CloudmersiveValidateApiClient.AddressApiaddressParseStringPOST /validate/address/parseParse an unstructured input text string into an international, formatted address
CloudmersiveValidateApiClient.AddressApiaddressReverseGeocodeAddressPOST /validate/address/geocode/reverseReverse geocode a lattitude and longitude into an address
CloudmersiveValidateApiClient.AddressApiaddressValidateAddressPOST /validate/address/street-addressValidate a street address
CloudmersiveValidateApiClient.AddressApiaddressValidateCityPOST /validate/address/cityValidate a City and State/Province combination, get location information about it
CloudmersiveValidateApiClient.AddressApiaddressValidatePostalCodePOST /validate/address/postal-codeValidate a postal code, get location information about it
CloudmersiveValidateApiClient.AddressApiaddressValidateStatePOST /validate/address/stateValidate a state or province, name or abbreviation, get location information about it
CloudmersiveValidateApiClient.DateTimeApidateTimeGetNowSimpleGET /validate/date-time/get/nowGet current date and time as of now
CloudmersiveValidateApiClient.DateTimeApidateTimeGetPublicHolidaysPOST /validate/date-time/get/holidaysGet public holidays in the specified country and year
CloudmersiveValidateApiClient.DateTimeApidateTimeParseNaturalLanguageDateTimePOST /validate/date-time/parse/date-time/natural-languageParses a free-form natural language date and time string into a date and time
CloudmersiveValidateApiClient.DateTimeApidateTimeParseStandardDateTimePOST /validate/date-time/parse/date-time/structuredParses a standardized date and time string into a date and time
CloudmersiveValidateApiClient.DomainApidomainCheckPOST /validate/domain/checkValidate a domain name
CloudmersiveValidateApiClient.DomainApidomainGetTopLevelDomainFromUrlPOST /validate/domain/url/get-top-level-domainGet top-level domain name from URL
CloudmersiveValidateApiClient.DomainApidomainIsAdminPathPOST /validate/domain/url/is-admin-pathCheck if path is a high-risk or vulnerable server administration path
CloudmersiveValidateApiClient.DomainApidomainPhishingCheckPOST /validate/domain/url/phishing-threat-checkCheck a URL for Phishing threats
CloudmersiveValidateApiClient.DomainApidomainPostPOST /validate/domain/whoisGet WHOIS information for a domain
CloudmersiveValidateApiClient.DomainApidomainQualityScorePOST /validate/domain/quality-scoreValidate a domain name's quality score
CloudmersiveValidateApiClient.DomainApidomainSafetyCheckPOST /validate/domain/url/safety-threat-checkCheck a URL for safety threats
CloudmersiveValidateApiClient.DomainApidomainSsrfCheckPOST /validate/domain/url/ssrf-threat-checkCheck a URL for SSRF threats
CloudmersiveValidateApiClient.DomainApidomainSsrfCheckBatchPOST /validate/domain/url/ssrf-threat-check/batchCheck a URL for SSRF threats in batches
CloudmersiveValidateApiClient.DomainApidomainUrlFullPOST /validate/domain/url/fullValidate a URL fully
CloudmersiveValidateApiClient.DomainApidomainUrlHtmlSsrfCheckPOST /validate/domain/url/ssrf-threat-check/html-embeddedCheck a URL for HTML embedded SSRF threats
CloudmersiveValidateApiClient.DomainApidomainUrlSyntaxOnlyPOST /validate/domain/url/syntax-onlyValidate a URL syntactically
CloudmersiveValidateApiClient.EmailApiemailAddressGetServersPOST /validate/email/address/serversPartially check whether an email address is valid
CloudmersiveValidateApiClient.EmailApiemailFullValidationPOST /validate/email/address/fullFully validate an email address
CloudmersiveValidateApiClient.EmailApiemailPostPOST /validate/email/address/syntaxOnlyValidate email adddress for syntactic correctness only
CloudmersiveValidateApiClient.IPAddressApiiPAddressGeolocateStreetAddressPOST /validate/ip/geolocate/street-addressGeolocate an IP address to a street address
CloudmersiveValidateApiClient.IPAddressApiiPAddressIpIntelligencePOST /validate/ip/intelligenceGet intelligence on an IP address
CloudmersiveValidateApiClient.IPAddressApiiPAddressIsBotPOST /validate/ip/is-botCheck if IP address is a Bot client
CloudmersiveValidateApiClient.IPAddressApiiPAddressIsThreatPOST /validate/ip/is-threatCheck if IP address is a known threat
CloudmersiveValidateApiClient.IPAddressApiiPAddressIsTorNodePOST /validate/ip/is-tor-nodeCheck if IP address is a Tor node server
CloudmersiveValidateApiClient.IPAddressApiiPAddressPostPOST /validate/ip/geolocateGeolocate an IP address
CloudmersiveValidateApiClient.IPAddressApiiPAddressReverseDomainLookupPOST /validate/ip/reverse-domain-lookupPerform a reverse domain name (DNS) lookup on an IP address
CloudmersiveValidateApiClient.LeadEnrichmentApileadEnrichmentEnrichLeadPOST /validate/lead-enrichment/lead/enrichEnrich an input lead with additional fields of data
CloudmersiveValidateApiClient.LeadEnrichmentApileadEnrichmentGetCompanyInformationPOST /validate/lead-enrichment/lead/email/company-informationGet company information from email address
CloudmersiveValidateApiClient.NameApinameGetGenderPOST /validate/name/get-genderGet the gender of a first name
CloudmersiveValidateApiClient.NameApinameIdentifierPOST /validate/name/identifierValidate a code identifier
CloudmersiveValidateApiClient.NameApinameValidateFirstNamePOST /validate/name/firstValidate a first name
CloudmersiveValidateApiClient.NameApinameValidateFullNamePOST /validate/name/full-nameParse and validate a full name
CloudmersiveValidateApiClient.NameApinameValidateLastNamePOST /validate/name/lastValidate a last name
CloudmersiveValidateApiClient.PhoneNumberApiphoneNumberSyntaxOnlyPOST /validate/phonenumber/basicValidate phone number (basic)
CloudmersiveValidateApiClient.TextInputApitextInputCheckHtmlSsrfPOST /validate/text-input/html/check/ssrfProtect html input from Server-side Request Forgery (SSRF) attacks
CloudmersiveValidateApiClient.TextInputApitextInputCheckSqlInjectionPOST /validate/text-input/check/sql-injectionCheck text input for SQL Injection (SQLI) attacks
CloudmersiveValidateApiClient.TextInputApitextInputCheckSqlInjectionBatchPOST /validate/text-input/check/sql-injection/batchCheck and protect multiple text inputs for SQL Injection (SQLI) attacks in batch
CloudmersiveValidateApiClient.TextInputApitextInputCheckXssPOST /validate/text-input/check/xssCheck text input for Cross-Site-Scripting (XSS) attacks
CloudmersiveValidateApiClient.TextInputApitextInputCheckXssBatchPOST /validate/text-input/check-and-protect/xss/batchCheck and protect multiple text inputs for Cross-Site-Scripting (XSS) attacks in batch
CloudmersiveValidateApiClient.TextInputApitextInputCheckXxePOST /validate/text-input/check/xxeProtect text input from XML External Entity (XXE) attacks
CloudmersiveValidateApiClient.TextInputApitextInputCheckXxeBatchPOST /validate/text-input/check/xxe/batchProtect text input from XML External Entity (XXE) attacks
CloudmersiveValidateApiClient.TextInputApitextInputProtectXssPOST /validate/text-input/protect/xssProtect text input from Cross-Site-Scripting (XSS) attacks through normalization
CloudmersiveValidateApiClient.UserAgentApiuserAgentParsePOST /validate/useragent/parseParse an HTTP User-Agent string, identify robots
CloudmersiveValidateApiClient.VatApivatVatLookupPOST /validate/vat/lookupValidate a VAT number

Documentation for Models

Documentation for Authorization

Apikey

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

11 months ago

1.4.7

2 years ago

1.4.6

3 years ago

1.4.5

3 years ago

1.4.4

3 years ago

1.4.3

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.9

3 years ago

1.3.8

3 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.9

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago