Base/feedback
Zhangchao2 (讨论 | 贡献) (→请求参数) |
Zhangchao2 (讨论 | 贡献) (→使用示例) |
||
(未显示1个用户的3个中间版本) | |||
第3行: | 第3行: | ||
== '''URL''' == | == '''URL''' == | ||
− | http://api. | + | http://api.map.sina.com.cn/base/feedback.(json|xml) |
== '''支持格式''' == | == '''支持格式''' == | ||
第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" ?> | ||
− | + | <feedBackResult> | |
<result>1</result> | <result>1</result> | ||
<info>succ</info> | <info>succ</info> | ||
− | + | </feedBackResult> | |
</pre> | </pre> | ||
第76行: | 第76行: | ||
<pre> | <pre> | ||
xml: | xml: | ||
− | http://api. | + | http://api.map.sina.com.cn/base/feedback.xml?content=abc&email=test@sina.cn&phone=138********&source=appkey |
json: | json: | ||
− | http://api. | + | 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 | 电话号码(手机或座机) |
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