返回格式

来自Chinese Ikoula Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

zh:返回格式 he:תבנית החזרה ro:Format de retur pl:Zwrotny formacie de:Rückgabeformat nl:Terugkeer formaat it:Formato di ritorno pt:Formato de retorno es:Formato de devolución en:Return format ru:Возвращает формат ja:戻り値の形式 ar:إعادة تنسيق fr:Format de retour

这篇文章是从由软件进行自动翻译。你可以看到这篇文章的源代码





介绍

IKoula API 提供了两种格式回答案 : XML & JSON

解释

每个 API 中可用的方法返回一个响应。
默认情况下,API 的返回是 XML。
它是可能通过一个额外的参数改变这种格式的回报 format设置为 JSON 要么 XML .如果您添加此参数,不要忘记添加以前的你的签名代 (请参阅 注意)

示例

下面是一些示例调用 GET :

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

Attention

如果您指定返回的格式,则会将一个附加参数添加 API 调用。他不应忘记添加 前台 生成您的签名 (请参阅 WIKI 德 签名生成)



这篇文章似乎你要有用 ?

0




您未被允许发表评论。