Skip to content

Comments

Add support for domain research endpoint#237

Open
juankuquintana wants to merge 1 commit intomainfrom
change/domain-research
Open

Add support for domain research endpoint#237
juankuquintana wants to merge 1 commit intomainfrom
change/domain-research

Conversation

@juankuquintana
Copy link

@juankuquintana juankuquintana commented Feb 19, 2026

Belongs to https://github.com/dnsimple/dnsimple-business/issues/2442
Fixes https://github.com/dnsimple/dnsimple-app/issues/33924

Add support for domain research endpoint

🔍 QA

  • Run ./gradlew runDomainResearch
// add to build.gradle
task runDomainResearch(type: JavaExec) {
    group = 'application'
    mainClass = 'com.dnsimple.TestDomainResearch'
    classpath = sourceSets.main.runtimeClasspath
}
package com.dnsimple;

import com.dnsimple.data.DomainResearchStatus;
import com.dnsimple.response.SimpleResponse;

public final class TestDomainResearch {

    public static void main(String[] args) {
        String token = "dnsimpletest_a_FSYtfYn7p74jfPd3GBUUsnLoOXia8hkR";
        String apiBase = "http://api.localhost:5000";
        long accountId = 2;
        String domain = "example.com";

        Client client = new Client.Builder()
                .apiBase(apiBase)
                .accessToken(token)
                .build();

        SimpleResponse<DomainResearchStatus> response = client.domains.domainResearchStatus(accountId, domain);
        DomainResearchStatus data = response.getData();
        if (data != null) {
            System.out.println("Request ID: " + data.getRequestId());
            System.out.println("Domain: " + data.getDomain());
            System.out.println("Availability: " + data.getAvailability());
            System.out.println("Errors: " + data.getErrors());
        } else {
            System.out.println("Error: No data in response");
            System.exit(1);
        }
    }
}

📋 Deployment Pre/Post tasks

:shipit: Deployment Verification

  • QAd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants