Per poder gaudir de la web necessites un navegador més recent i segur. Per més informació, revisa les actualitzacions d'Internet Explorer.
 No es pot donar d'alta aquest servei. Contacta amb Suport

API dinahosting

Totes les ordres que necessites
Si tens dubtes, t'ajudem gratis

api.cta__h1

API dinahosting

Tots els comandaments que necessites per implementar la teva pròpia plataforma de venda i gestió de dominis, allotjament web, VPS... emprant la teva interfície, automatitzant i planificant accions sobre un o diversos serveis.

Vols fer servir la nostra API? Només necessites un compte actiu a dinahosting i emplenar el formulari següent per habilitar les teves dades credencials.

Llista de comandaments

Llista d'errors

Llibreria d'arxius

Llibreria de fitxers HTTP_Request de dinahosting
Introduce el texto mostrado en la imagen

Tipus de peticions

Jsonrpc

 Json Remote Procedure Call  request.
 
 Special HTTP request that sends JSON encoded arguments and expects a
JSON encoded response.
 
 Characteristics and requeriments:
 - Request data sent through HTTP POST query .
 - Content-type indicated as  "application/json"   on HTTP headers.
 - User login data must be sent  at  "Authorization: Basic"  on HTTP
headers .
 - Parameters can be sent in any order. Keys are case sensitive.
 - Only used with Jsonrpc response type.
 - Simulation mode only available on web server at
https://dinahosting.com/api/.

Simple

 Simple HTTP REQUEST .


 Standard HTTP request that sends key=value pairs in a URL encoded
request.

 Characteristics and requeriments:
 - Request data sent through a standard HTTP GET or POST query .
 - User login authentication data might be sent at "Authorization:
Basic" on HTTP headers  or  in request parameters AUTH_USER and
AUTH_PWD.
 - Parameters can be sent in any order. Keys are case sensitive.
 - Can be used with any responseType.
 - Can force client-side activation of simulation mode. Just add a
boolean parameter SIMULATE=true to the request.

 Example:
https://dinahosting.com/special/api.php?AUTH_USER=yourUser&AUTH_PWD=yourPass&command=System_GetRequestTypes&responseType=Xml&SIMULATE=false


Xmlrpc

 Standard Xml Remote Procedure Call  request.
 
 Special HTTP request that sends XML encoded arguments and expects a
XML encoded response.
 
 Characteristics and requeriments:
 - Request data sent through HTTP POST query .
 - Content-type indicated as  "application/xml"   on HTTP headers.
 - User login data must be sent  at  "Authorization: Basic"  on HTTP
headers .
 - Parameters must arrive ordered, as described in method signature.
 - Only used with Xmlrpc response type.
 - Simulation mode only available on web server at
https://dinahosting.com/api/ .

Tipus de resposta

Xml

 
 Extensible markup language  response.
 
 Multi-plataform language. Lighter than our XmlRpc.
 
 Used with standard (Simple) HTTP requests.

Json

 
 JavaScript Object Notation  response.
 
 Lightweight, multi-plataform, easy parseable response type.
 
 Used with standard (Simple) HTTP requests.

Test

 
 Testing response. Returns valid PHP code. 
 Harder to parse than Json or XML.
 
 Used with standard (Simple) HTTP requests.

Jsonrpc

 
 JavaScript Object Notation Remote procedure call response.
 
 Same as standard Json .
 
 Only for JsonRpc requests.
 

Simple

 
 Simple key value plain text response.
 
 Lightest response, but it isn't standard. 
 Parsing may be troublesome if response data is complex.
 Useful for testing purposes.
 
 Used with standard (Simple) HTTP requests.

Xmlrpc

 
 Extensible markup language Remote procedure call response.
 
 Standard XML response built with Zend XmlRpc server.
 Easy to parse with Zend XmlRpc client, but heavier communication.
 
 Recommended only for XmlRpc requests.
 

Debug

 
 Debuging response.
 
 Used with standard (Simple) HTTP requests.