// See documentation to set up the client first
let apiInstance = new superlink.SubdomainApi();
let parentDomain = "supertest.me";
let request = ApiParentDomainPurchaseRequest.constructFromObject({
'domainContactDetails': {
'address1': '15 Church St',
'address2': 'Door 25, The building',
'city': 'New York',
'country': 'US',
'email': 'nora.miller@gmail.com',
'nameFirst': 'Nora',
'nameLast': 'Miller',
'phoneCountryCode': '+1',
'phoneNumber': '1234123412',
'postalCode': '12345',
'state': 'CA'
}
}, null);
apiInstance.parentdomainPurchase(parentDomain, request, (error, data, response) => {
if (error) {
console.error(error);
}
});
// See documentation to set up the client first
address1 := "15 Church St"
address2 := "Door 25, The building"
city := "New York"
country := "US"
email := "nora.miller@gmail.com"
nameFirst := "Nora"
nameLast := "Miller"
phoneCountryCode := "+1"
phoneNumber := "1234123412"
postalCode := "12345"
state := "CA"
parentDomain := "supertest.me"
request := ApiParentDomainPurchaseRequest{
DomainContactDetails: &ApiParentDomainPurchaseRequestDomainContactDetails{
Address1: &address1,
Address2: &address2,
City: &city,
Country: &country,
Email: &email,
NameFirst: &nameFirst,
NameLast: &nameLast,
PhoneCountryCode: &phoneCountryCode,
PhoneNumber: &phoneNumber,
PostalCode: &postalCode,
State: &state,
}
}
r, err := superlinkClient.SubdomainAPI.ParentdomainPurchase(context.Background(), parentDomain).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SubdomainAPI.ParentdomainPurchase``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
# See documentation to set up the client first
api_instance = superlink.SubdomainApi(api_client)
parent_domain = 'supertest.me'
request = ApiParentDomainPurchaseRequest.from_dict({
"domainContactDetails": {
"address1": "15 Church St",
"address2": "Door 25, The building",
"city": "New York",
"country": "US",
"email": "nora.miller@gmail.com",
"nameFirst": "Nora",
"nameLast": "Miller",
"phoneCountryCode": "+1",
"phoneNumber": "1234123412",
"postalCode": "12345",
"state": "CA"
}
})
try:
api_instance.parentdomain_purchase(parent_domain, request)
except Exception as e:
print("Exception when calling SubdomainApi->parentdomain_purchase: %s\n" % e)

