// See documentation to set up the client first
let apiInstance = new superlink.SubdomainApi();
let parentDomain = "supertest.me";
apiInstance.parentdomainSearch(parentDomain, (error, data, response) => {
if (error) {
console.error(error);
} else {
data.availableParentDomain.forEach(domain => {
console.log(domain);
})
}
});
// See documentation to set up the client first
parentDomain := "supertest.me"
resp, r, err := superlinkClient.SubdomainAPI.ParentdomainSearch(context.Background(), parentDomain).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SubdomainAPI.ParentdomainSearch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
for _, d := range resp.AvailableParentDomain {
fmt.Fprintf(os.Stdout, "%s\n", d)
}
# See documentation to set up the client first
api_instance = superlink.SubdomainApi(api_client)
parent_domain = 'supertest.me'
try:
api_response = api_instance.parentdomain_search(parent_domain)
for domain in api_response.available_parent_domain:
print(domain)
except Exception as e:
print("Exception when calling SubdomainApi->parentdomain_search: %s\n" % e)

