// See documentation to set up the client first
let apiInstance = new superlink.SubdomainApi();
let parentDomain = "supertest.me";
let opts = {
'paginationToken': null,
'pageSize': 100
}
apiInstance.subdomainPerDay(parentDomain, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log(`${data.nextPaginationToken}`)
console.log(`${data.total}`)
data.aggregates.forEach(perDay => {
console.log(perDay.date);
console.log(perDay.count);
})
}
});
// See documentation to set up the client first
parentDomain := "supertest.me"
resp, r, err := superlinkClient.SubdomainAPI.SubdomainPerDay(context.Background(), parentDomain).PageSize(10).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SubdomainAPI.SubdomainPerDay``: %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 _, p := range resp.Aggregates {
fmt.Fprintf(os.Stdout, "%s %s\n", *p.Date, *p.Count)
}
# See documentation to set up the client first
api_instance = superlink.SubdomainApi(api_client)
parent_domain = 'supertest.me'
try:
api_response = api_instance.subdomain_per_day(parent_domain, pagination_token=None, page_size=10)
print(api_response.next_pagination_token)
print(api_response.total)
for per_day in api_response.aggregates:
print(per_day.date)
print(per_day.count)
except Exception as e:
print("Exception when calling SubdomainApi->subdomain_per_day: %s\n" % e)

