Check if a subdomain is available for creation

// See documentation to set up the client first

let apiInstance = new superlink.SubdomainApi();
let parentDomain = "supertest.me";
let subDomainName = "nora";

apiInstance.subdomainAvailable(parentDomain, subDomainName, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log(`${data.status}`)
  }
});