The resellme.search_domain method can return a json object with the values such as available or not_available
search_response=resellme.search_domain('xyz.co.zw')
# search_response is a json objectifsearch_response['status'] =='available':
# do registration etc
Registering a New Domain
The client's contact details are entered upon registering the domain
The SDK uses default nameservers upon creation and registration of the domain, however there is room to update to your preferred nameservers, check the Updating Nameserver section
# A contact is created with the details provided upon registering a domainresponse=resellme.register_domain(
domain_name='xbc.co.zw',
first_name='Beven',
last_name='Nyamande',
email='beven@crontab.co.zw',
company='test1',
mobile='123123123',
street_address='123 Xyz Street',
core_business='Area of business undertaken by the company',
city='Harare',
country='Zimbabwe',
)
Updating nameservers
To update nameservers to custom nameservers, firstly provide the domain name of the site you want to update as shown below