ballerinax/ip2whois Ballerina library

1.5.1

Overview

This is a generated connector from IP2WHOIS API v2 OpenAPI Specification.

IP2WHOIS information lookup REST API helps users to obtain domain information, WHOIS record, by using a domain name. The API returns a comprehensive WHOIS data such as creation date, updated date, expiration date, domain age, the contact information of the registrant, mailing address, phone number, email address, nameservers the domain is using and much more. More about the IP2WHOIS API can be find at IP2WHOIS

This module supports IP2WHOIS API version v2.

Prerequisites

Before using this connector in your Ballerina application, complete the following:

Quickstart

To use the IP2WHOIS connector in your Ballerina application, update the .bal file as follows:

Step 1: Import connector

First, import the ballerinax/ip2whois module into the Ballerina project.

Copy
import ballerinax/ip2whois;

Step 2: Create a new connector instance

You can now intantiate the client.

Copy
p2whois:Client ip2whoisClient = check new;

Step 3: Invoke an operation

  1. Now you can use the operations available within the connector. Following code demonstrate how to get domain information.
Copy
string domainInfo = check ip2whoisClient->getDomainInfo("wso2.com", "<API_Key>", "json");
  1. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/ip2whois;Copy

Metadata

Released date: 10 months ago

Version: 1.5.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 

Current verison: 2


Weekly downloads


Source repository


Keywords

IT Operations/Cloud Services
Cost/Free

Contributors

Other versions

See more...