Return format

From EN Ikoula wiki
Revision as of 15:43, 18 November 2015 by Ikbot (talk | contribs)
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

zh:返回格式 ro:Format de retur pl:Zwrotny formacie nl:Terugkeer formaat it:Formato di ritorno pt:Formato de retorno es:Formato de devolución fr:Format de retour

This article has been created by an automatic translation software. You can view the article source here.

fr::de:Rückgabeformatfr:de:Rückgabeformat




Introduction

IKoula API offers two formats back for answers : XML & JSON

Explanation

Each method available in the API returns a response.
By default, the return of the API is XML.
It is possible to change this format of return by passing an extra parameter format, set to be JSO eit XM. If you add this parameter, do not forget to add it before the generation of your signature (see Attention)

Example

Here are some examples of calls GET :

Default XML
https://api.ikoula.com/index.php?r=wsflex/vmlist&login=mail@example.com&crypted_password=password_encrypted&signature=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
XML desired
https://api.ikoula.com/index.php?r=wsflex/vmlist&login=mail@example.com&crypted_password=password_encrypted&format=xml&signature=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
JSON desired
https://api.ikoula.com/index.php?r=wsflex/vmlist&login=mail@example.com&crypted_password=password_encrypted&format=json&signature=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Attention

If you specify the return format, you add an additional parameter to the API call. He should not forget to Add FRON generate your signature (see WIKI de The signature generation)



This article seemed you to be u ?

0




You are not allowed to post comments.