List subdomains under specified parentdomain

// 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);
    })
  }
});