“返回格式”的版本间的差异

来自Chinese Ikoula Wiki
Jump to navigation Jump to search
第1行: 第1行:
 +
<span data-link_translate_he_title="תבנית החזרה"  data-link_translate_he_url="%D7%AA%D7%91%D7%A0%D7%99%D7%AA+%D7%94%D7%97%D7%96%D7%A8%D7%94"></span>[[:he:תבנית החזרה]][[he:תבנית החזרה]]
 
<span data-link_translate_ro_title="Format de retur"  data-link_translate_ro_url="Format+de+retur"></span>[[:ro:Format de retur]][[ro:Format de retur]]
 
<span data-link_translate_ro_title="Format de retur"  data-link_translate_ro_url="Format+de+retur"></span>[[:ro:Format de retur]][[ro:Format de retur]]
 
<span data-link_translate_pl_title="Zwrotny formacie"  data-link_translate_pl_url="Zwrotny+formacie"></span>[[:pl:Zwrotny formacie]][[pl:Zwrotny formacie]]
 
<span data-link_translate_pl_title="Zwrotny formacie"  data-link_translate_pl_url="Zwrotny+formacie"></span>[[:pl:Zwrotny formacie]][[pl:Zwrotny formacie]]

2015年12月7日 (一) 19:28的版本

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




您未被允许发表评论。