Short url/comment/counts
(创建新页面为 '{{api_desc2| uri=short_url/comment/counts| desc=取得一个或多个短链接在微博上的微博评论数| format=XML/JSON| httpMethod=GET| needAuth=false| rateLimit=true| pa…') |
|||
第1行: | 第1行: | ||
{{api_desc2| | {{api_desc2| | ||
uri=short_url/comment/counts| | uri=short_url/comment/counts| | ||
− | desc= | + | desc=取得一个短链接在微博上的微博评论数| |
format=XML/JSON| | format=XML/JSON| | ||
httpMethod=GET| | httpMethod=GET| | ||
needAuth=false| | needAuth=false| | ||
rateLimit=true| | rateLimit=true| | ||
− | params={{api_args|url_short|true|string| | + | params={{api_args|url_short|true|string|需要取得评论数的短链接,需要URLencoded}}| |
getParam=&url_short=h4DwT1| | getParam=&url_short=h4DwT1| | ||
postParam=| | postParam=| | ||
第17行: | 第17行: | ||
<comment_counts>169</comment_counts> | <comment_counts>169</comment_counts> | ||
</url> | </url> | ||
− | |||
</urls> | </urls> | ||
</pre> | </pre> | ||
第26行: | 第25行: | ||
”url_short”: ”http://t.cn/h4DwT1”, | ”url_short”: ”http://t.cn/h4DwT1”, | ||
”comment_counts”: ”169” | ”comment_counts”: ”169” | ||
− | } | + | } |
− | + | ||
] | ] | ||
</pre>| | </pre>| | ||
− | useAge= | + | useAge=无| |
otherInfo=无 | otherInfo=无 | ||
}} | }} |
2011年3月22日 (二) 17:47的最后版本
目录 |
short_url/comment/counts
取得一个短链接在微博上的微博评论数
URL
http://api.t.sina.com.cn/short_url/comment/counts.(json%7Cxml)
支持格式
XML/JSON
HTTP请求方式
GET
是否需要登录
false
关于授权机制,参见授权机制声明
请求数限制
true
关于请求数限制,参见接口访问权限说明
请求参数
必选 | 类型及范围 | 说明 | |
---|---|---|---|
source | true | string | 申请应用时分配的AppKey,调用接口时候代表应用的唯一身份。(采用OAuth授权方式不需要此参数) |
url_short | true | string | 需要取得评论数的短链接,需要URLencoded |
注意事项
无
返回结果
XML示例
<urls> <url> <url_short>http://t.cn/h4DwT1</url_short> <comment_counts>169</comment_counts> </url> </urls>
JSON示例
[ { ”url_short”: ”http://t.cn/h4DwT1”, ”comment_counts”: ”169” } ]
其他
无
文档更新时间: 2011-03-22