Parent domain info
List subdomains
SDK Documentation
- Introduction
- Client SDK
- Overview
- Installation and Setup
- Integration guides
- Examples
- Partner API
- Free Subdomains API
- Parent domain onboarding
- Parent domain info
- Subdomain management
- Subdomain resolution
- Headless Marketplace API
- Domain Resolution API
- React SDK
- Android SDK
- iOS SDK
Parent domain info
List subdomains
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);
})
}
});