API Introduction

The Domain Reseller API allows you to interact with our system programmatically from your own system. 
Using the API you are able to perform actions such as: 
• Register Domain 
• Transfer Domain
• Renew Domain 
• Get details of a domain (status, expiry date, etc.) 
• Get and modify contact details
• Get EPP Code
• Get/Modify Nameservers
• Registrar Lock Status On/Off
• ID Protection On/Off


Domains Reseller Request/Response Data Format: 
In requests, we accepts POST parameters.
API response is sent in JSON data format.

Authentication: 
API key (secret key), email address and password is required for authentication and the request should be made from the registered IP address and hostname. The host and IP registration is automatic at the first successful API request. 
These details are available after login  at the reseller page

URL: 
https://online.mhosting.hu/reseller/controller.php


Examples:
The following examples use the cURL command-line tool to exectute API requests.

Exemplary API Request:

curl -i -X POST \
-H "Content-Type:multipart/form-data" \
-F "sld=tesztdomain" \
-F "tld=hu" \
-F "Username=viszonteladoi@fiok.hu" \
-F "Password=XXXXXX" \
-F "SecretKey=mhd-95fe67e925b3a708224982d9e5080cef" \
-F "valid_domain=www.viszonteladoidomain.hu" \
-F "valid_ip=12.34.56.78" \
-F "api_action=registerdomain" \
-F "firstname=Keresztnév" \
-F "lastname=Vezetéknév" \
-F "address1=Victor Hugo u. 18-22." \
-F "city=Budapest" \
-F "state=Budapest" \
-F "postcode=1132" \
-F "country=HU" \
-F "email=ugyfel@cime.hu" \
-F "phonenumber=+36.11234567" \
-F "additionalfields[iszthuident]=AB12345678" \
-F "ns1=ns1.nevszerver.hu" \
-F "ns2=ns2.nevszerver.hu" \
-F "regperiod=2" \
'https://online.mhosting.hu/reseller/controller.php'

Example API response:

{"result":"success","totalfee":"2286.00"}
Hasznosnak találta ezt a választ? 0 A felhasználók hasznosnak találták ezt (0 Szavazat)