Building the API client library requires Maven to be installed.
To install the API client library to your local Maven repository, simply execute:
mvn install
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn deploy
Refer to the official documentation for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>com.cloudmersive</groupId>
<artifactId>cloudmersive-java-api-client</artifactId>
<version>1.1.5</version>
<scope>compile</scope>
</dependency>
Add this dependency to your project's build file:
compile "com.cloudmersive:cloudmersive-java-api-client:1.1.5"
At first generate the JAR by executing:
mvn package
Then manually install the following JARs:
Please follow the installation instruction and execute the following Java code:
import com.cloudmersive.client.invoker.*;
import com.cloudmersive.client.invoker.auth.*;
import com.cloudmersive.client.model.*;
import com.cloudmersive.client.DomainApi;
import java.io.File;
import java.util.*;
public class DomainApiExample {
public static void main(String[] args) {
DomainApi apiInstance = new DomainApi();
String domain = "domain_example"; // String | Domain name to check, for example \"cloudmersive.com\"
try {
CheckResponse result = apiInstance.domainCheck(domain);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DomainApi#domainCheck");
e.printStackTrace();
}
}
}
All URIs are relative to https://api.cloudmersive.com
Class | Method | HTTP request | Description |
---|---|---|---|
DomainApi | domainCheck | POST /validate/domain/check | Validate a domain name |
DomainApi | domainPost | POST /validate/domain/whois | Get WHOIS information for a domain |
EmailApi | emailAddressGetServers | POST /validate/email/address/servers | Partially check whether an email address is valid |
EmailApi | emailFullValidation | POST /validate/email/address/full | Fully validate an email address |
EmailApi | emailPost | POST /validate/email/address/syntaxOnly | Validate email adddress for syntactic correctness only |
IpAddressApi | iPAddressPost | POST /validate/ip/geolocate | Geolocate an IP address |
Authentication schemes defined for the API:
It's recommended to create an instance of ApiClient
per thread in a multithreaded environment to avoid any potential issues.