ballerinax/ip2whois Ballerina library
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.
Before using this connector in your Ballerina application, complete the following:
- Create IP2WHOIS account
- Obtain tokens - Navigate to the IP2WHOIS Profile, your API key will be listed there, simply copy it.
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.
Step 2: Create a new connector instance
You can now intantiate the client.
Step 3: Invoke an operation
- Now you can use the operations available within the connector. Following code demonstrate how to get domain information.
bal runcommand to compile and run the Ballerina program.
Released date: 10 months ago
Ballerina version: 2201.4.1
GraalVM compatible: Yes
Current verison: 2