Search for available domains which can be purchased to be used as a parent domain

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