API Actions
Posted by Zoltan Egresi on 20 Sep 2017 10:50 AM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RegisterDomain:This command is used to send a Register command to the registrar.
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=RegisterDomain&sld=exampledomain&tld=com®period=1&nameserver1=ns1.yourdomain.com&nameserver2=ns2.yourdomain.com&firstname=test&lastname=test&companyname=company&address1=addresss&city=city&state=region&country=US&postcode=12345&phonenumber=1234567890&email=admin@exampledomain.com' --compressed Example Response: {"result":"success","msg":"Domain has been registered"} TransferDomainThis command is used to send a Transfer command to the registrar.
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=TransferDomain&sld=exampledomain&tld=com&transfersecret=gd23h231s21®period=1&nameserver1=ns1.yourdomain.com&nameserver2=ns2.yourdomain.com&firstname=test&lastname=test&companyname=company&address1=addresss&city=city&state=region&country=US&postcode=12345&phonenumber=1234567890&email=admin@exampledomain.com' --compressed Example Response: {"result":"success","msg":"Domain transfer initiated successfully."} RenewDomainThis command is used to send a Renew command to the registrar.
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=RenewDomain&sld=exampledomain&tld=com®period=1' --compressed Example Response: {"result":"success","msg":"The domain has been successfully."} GetNameserversThis command is used to obtain the nameservers of a domain.
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=GetNameservers&sld=exampledomain&tld=com' --compressed Example Response: {"result":"success","ns1":"ns1.exampledomain.com","ns2":"ns2.exampledomain.com"} SaveNameserversThis command is used to update the nameservers of a domain.
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=SaveNameservers&sld=exampledomain&tld=com&ns1=ns1.exampledomain.com&ns2=ns2.exampledomain.com' --compressed Example Response: {"result":"success"} ReleaseDomainThis command is used to send a Release command to the registrar.
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=ReleaseDomain&sld=exampledomain&tld=com&newtag=1AND1-TEST' --compressed Example Response: {"result":"success"} RequestDeleteThis function is called when a domain is requested to be deleted
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=RequestDelete&sld=exampledomain&tld=com' --compressed Example Response: {"result":"success"} GetEPPCodeThis command is used to obtain the EPP Code of a domain.
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=GetEPPCode&sld=exampledomain&tld=com' --compressed Example Response: {"result":"success","eppcode":"23svxce123fds"} GetContactDetailsThis command is used to perform a whois lookup on a specified domain.
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=GetContactDetails&sld=exampledomain&tld=com' --compressed Example Response: {"result":"success","Registrant":{"Name":"John Doe","Company":"Company name","Address":"P.O.","City":"Amsterdam","Country":"NL","Zip_Code":"1001 GT","Email":"john@exampledomain.com","Telephone":"N\/A"}} SaveContactDetailshis command is used to update the contact information on a domain.
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=SaveContactDetails&sld=exampledomain&tld=com&contactdetails[Registrant][Name]=John%20Doe&contactdetails[Registrant][Company]=Company%20name&contactdetails[Registrant][Address]=Address&contactdetails[Registrant][City]=Amsterdam&contactdetails[Registrant][Country]=NL&contactdetails[Registrant][Zip_Code]=1001 GT&contactdetails[Registrant][Email]=test@exampledomain.com&contactdetails[Registrant][Telephone]=N/A' --compressed Example Response: {"result":"success","Registrant":{"Name":"John Doe","Company":"Company name","Address":"P.O.","City":"Amsterdam","Country":"NL","Zip_Code":"1001 GT","Email":"john@exampledomain.com","Telephone":"N\/A"}} DomainGetLockingStatusThis command is used to obtain the lock state of a domain.
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=domaingetlockingstatus&sld=exampledomain&tld=com' --compressed Example Response: {"result":"success","lockstatus":"unlocked"} DomainUpdateLockingStatusThis command is used to update the lock state of a domain.
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=domainupdatelockingstatus&sld=exampledomain&tld=com&lockstatus=' --compressed Example Response: {"result":"success"} GetDNSThis function is called when the DNS Host Records are requested to be viewed within WHMCS Request Parameters
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=GetDNS&sld=exampledomain&tld=com' --compressed Example Response: {"0":{"hostname":"*","type":"A","address":"0.0.0.0","priority":null},"1":{"hostname":"mail","type":"MXE","address":"0.0.0.0","priority":"10"},"result":"success"} SaveDNSThis function is called when any changes to DNS Host Records information is submitted Request Parameters
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=SaveDNS&sld=exampledomain&tld=com&dnsrecords=czowOiIiOw==' --compressed Example Response: {"result":"success"} RegisterNameserverThis function is called when a child nameserver is requested to be registered Request Parameters
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=RegisterNameserver&sld=exampledomain&tld=com&nameserver=test.exampledomain.com&ipaddress=1.1.1.1' --compressed Example Response: {"result":"success"} ModifyNameserverThis function is called when a child nameserver is requested to be edited Request Parameters
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=ModifyNameserver&sld=exampledomain&tld=com&nameserver=test.exampledomain.com¤tipaddress=1.1.1.1&newipaddress=2.2.2.2' --compressed Example Response: {"result":"success"} DeleteNameserverThis function is called when a child nameserver is requested to be deleted Request Parameters
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=DeleteNameserver&sld=exampledomain&tld=com&nameserver=test.exampledomain.com' --compressed Example Response: {"result":"success"} GetEmailForwardingThis function is called when the Email Forwarding are requested to be viewed within WHMCS Request Parameters
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=GetEmailForwarding&sld=exampledomain&tld=com' --compressed Example Response: {"1":{"prefix":"test","forwardto":"test@exampledomain.com"},"result":"success"} SaveEmailForwardingThis function is called when the Email Forwarding are requested to be viewed within WHMCS Request Parameters
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=SaveEmailForwarding&sld=exampledomain&tld=com&prefix=czowOiIiOw==&forwardto=czowOiIiOw==' --compressed Example Response: {"result":"success"} SyncThis function can include syncing status changes, renewals, and expiry dates. Request Parameters
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=Sync&sld=exampledomain&tld=com' --compressed Example Response: {"result":"success"} TransferSyncTthis function is called for every domain in the Pending Transfer status each time your domain sync cron runs. Request Parameters
Example Request: curl 'https://billing.globehosting.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=TransferSync&sld=exampledomain&tld=com&domain=exampledomain.com®period=1' --compressed Example Response: {"result":"success"} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|