Domains-tlds-registryagreements:GET

From Hostway API Documentation
(Difference between revisions)
Jump to: navigation, search
(Example get registry agreements (supplied invalid tld) for com,net,ca,invalidTld)
 
m (1 revision: Release 96)
 

Latest revision as of 08:44, 31 July 2014

[edit] GET /domains/tlds/registryagreement

Get a list of registry agreements

Contents

[edit] Request

GET /domains/tlds/registryagreement

[edit] Parameters

tld
one or more valid tld's separated by comma

[edit] Request Headers

None.

[edit] Request Body

None.

[edit] Request Parameters

tld - list of strings
comma separated list of tlds
for example, tlds=com,net.org

[edit] Response

[edit] Status Code

200 OK
Returns list of registry agreements
400 Bad Request
Invalid request, invalid parameter supplied

[edit] Response Body

List of registry agreements

[edit] Example get registry agreements for com,net,ca

Request

GET /domains/tlds/registryagreement?tlds=com,net,ca
 

Response

200 OK
Content-Type: application/json; charset=UTF-8

{"agreements": 
 [
  {"com": ""},
  {"net": ""},
  {"ca": "https://services.cira.ca/agree/agreement/agreementVersion2.0.jsp"},
 ]
}
 

[edit] Example get registry agreements (supplying invalid tld) for com,net,ca,invalidTld

Request

GET /domains/tlds/registryagreement?tlds=com,net,ca,invalidTld
 

Response

200 OK
Content-Type: application/json; charset=UTF-8

{"agreements": 
 [
  {"com": ""},
  {"net": ""},
  {"ca": "https://services.cira.ca/agree/agreement/agreementVersion2.0.jsp"},
  {"invalidtld": "Tld not supported"}
 ]
}

 

[edit] See also


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox