Base/feedback

跳转到: 导航, 搜索
(使用示例)
(使用示例)
 
(未显示1个用户的6个中间版本)
第3行: 第3行:
  
 
== '''URL''' ==
 
== '''URL''' ==
http://api.t.sina.com.cn/base/feedback.(json|xml)
+
http://api.map.sina.com.cn/base/feedback.(json|xml)
  
 
== '''支持格式''' ==
 
== '''支持格式''' ==
第17行: 第17行:
 
== '''请求参数''' ==
 
== '''请求参数''' ==
 
{| style="width:100%; height:200px;" border="1" cellspacing="0" cellpadding="0"
 
{| style="width:100%; height:200px;" border="1" cellspacing="0" cellpadding="0"
! style="width:20%;height:20px" |参数  
+
! style="text-align:center;width:20%;height:20px" |参数  
! style="width:10%" |必选
+
! style="text-align:center;width:10%" |必选
! style="width:20%" |类型及范围
+
! style="text-align:center;width:20%" |类型及范围
! style="width:50%" |说明
+
! style="text-align:center;width:50%" |说明
 
|- style="height:20px"  
 
|- style="height:20px"  
 
| style="text-align:center;" |source
 
| style="text-align:center;" |source
第45行: 第45行:
 
| style="text-align:center;" |false
 
| style="text-align:center;" |false
 
| style="text-align:center;" |int
 
| style="text-align:center;" |int
| 反馈类型(详见[[意见反馈类型|意见反馈类型]])
+
| 反馈类型
 
|- style="height:20px"  
 
|- style="height:20px"  
 
| style="text-align:center;" |mobiletype
 
| style="text-align:center;" |mobiletype
第58行: 第58行:
 
<pre>
 
<pre>
 
  <?xml version="1.0" encoding="utf-8" ?>  
 
  <?xml version="1.0" encoding="utf-8" ?>  
  <xml>
+
<feedBackResult>
 
   <result>1</result>  
 
   <result>1</result>  
 
   <info>succ</info>  
 
   <info>succ</info>  
  </xml>
+
</feedBackResult>
 
</pre>
 
</pre>
  
第76行: 第76行:
 
<pre>
 
<pre>
 
xml:  
 
xml:  
http://api.t.sina.com.cn/base/feedback.xml?content=abc&email=test@sina.cn&phone=138********&source=appkey
+
http://api.map.sina.com.cn/base/feedback.xml?content=abc&email=test@sina.cn&phone=138********&source=appkey
  
 
json:  
 
json:  
http://api.t.sina.com.cn/base/feedback.json?content=abc&email=test@sina.cn&phone=138********&source=appkey
+
http://api.map.sina.com.cn/base/feedback.json?content=abc&email=test@sina.cn&phone=138********&source=appkey
 
</pre>
 
</pre>

2011年3月23日 (三) 15:58的最后版本

目录

意见反馈

意见反馈

URL

http://api.map.sina.com.cn/base/feedback.(json%7Cxml)

支持格式

XML/JSON

HTTP请求方式

GET

是否需要登录

false

请求数限制

true

请求参数

参数 必选 类型及范围 说明
source true string 申请应用时分配的AppKey,调用接口时候代表应用的唯一身份
content true string 反馈内容
phone true string 电话号码(手机或座机)
email true string 电子邮箱
type false int 反馈类型
mobiletype false int 手机型号

返回结果

XML示例

 <?xml version="1.0" encoding="utf-8" ?> 
 <feedBackResult>
  <result>1</result> 
  <info>succ</info> 
 </feedBackResult>

JSON示例

{"result":1,"info ":"succ"}

字段说明

result:反馈状态(1,提交成功,0,提交失败)
info:提示信息

使用示例

xml: 
http://api.map.sina.com.cn/base/feedback.xml?content=abc&email=test@sina.cn&phone=138********&source=appkey

json: 
http://api.map.sina.com.cn/base/feedback.json?content=abc&email=test@sina.cn&phone=138********&source=appkey
文档更新时间: 2011-03-23