“返回格式”的版本间的差异
Jump to navigation
Jump to search
(创建页面,内容为“<br /> 这篇文章是从由软件进行自动翻译。你可以看到这篇文章的源代码<br /><span data-translate="fr"></span>...”) |
|||
第1行: | 第1行: | ||
+ | <span data-link_translate_fr_title="Format de retour" data-link_translate_fr_url="Format_de_retour"></span>[[:fr:Format de retour]][[fr:Format de retour]] | ||
<br /> | <br /> | ||
2015年10月19日 (一) 15:11的版本
这篇文章是从由软件进行自动翻译。你可以看到这篇文章的源代码
介绍
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
开启评论自动刷新