Base/feedback

跳转到: 导航, 搜索
(使用示例)
(请求参数)
第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

2011年3月11日 (五) 11:47的版本

目录

意见反馈

意见反馈

URL

http://api.t.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" ?> 
  <xml>
  <result>1</result> 
  <info>succ</info> 
  </xml>

JSON示例

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

字段说明

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

使用示例

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

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