Base/feedback
Zhangchao2 (讨论 | 贡献) (→请求参数) |
Zhangchao2 (讨论 | 贡献) (→使用示例) |
||
第76行: | 第76行: | ||
<pre> | <pre> | ||
xml: | xml: | ||
− | http://api.t.sina.com.cn/base/feedback. | + | http://api.t.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. | + | http://api.t.sina.com.cn/base/feedback.json?content=abc&email=test@sina.cn&phone=138********&source=appkey |
</pre> | </pre> |
2011年3月11日 (五) 11:44的版本
目录 |
意见反馈
意见反馈
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 | 电话号码(手机或座机) |
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