// See documentation to set up the client first
let apiInstance = new superlink.SubdomainApi();
let parentDomain = "supertest.me";
let opts = {
'paginationToken': null,
'pageSize': 10
}
apiInstance.subdomainList(parentDomain, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log(`${data.nextPaginationToken}`)
console.log(`${data.total}`)
data.names.forEach(name => {
console.log(name.name);
console.log(name.createdTimestamp);
})
}
});
// See documentation to set up the client first
parentDomain := "supertest.me"
resp, r, err := superlinkClient.SubdomainAPI.SubdomainList(context.Background(), parentDomain).PageSize(10).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SubdomainAPI.SubdomainList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
fmt.Fprintf(os.Stdout, "%s\n", *resp.NextPaginationToken)
fmt.Fprintf(os.Stdout, "%s\n", *resp.Total)
for _, n := range resp.Names {
fmt.Fprintf(os.Stdout, "%s %s\n", *n.CreatedTimestamp, *n.Name)
}
# See documentation to set up the client first
api_instance = superlink.SubdomainApi(api_client)
parent_domain = 'supertest.me'
try:
api_response = api_instance.subdomain_list(parent_domain, pagination_token=None, page_size=10)
print(api_response.next_pagination_token)
print(api_response.total)
for name in api_response.names:
print(name.created_timestamp)
print(name.name)
except Exception as e:
print("Exception when calling SubdomainApi->subdomain_list: %s\n" % e)

