Statuses/batch show
目录 |
statuses/batch_show
根据提供的ID批量获取一组微博的信息。
URL
http://api.t.sina.com.cn/statuses/batch_show.(json%7Cxml)
支持格式
XML/JSON
HTTP请求方式
GET
是否需要登录
true
关于授权机制,参见授权机制声明
请求数限制
true
关于请求数限制,参见接口访问权限说明
请求参数
必选 | 类型及范围 | 说明 | |
---|---|---|---|
source | true | string | 申请应用时分配的AppKey,调用接口时候代表应用的唯一身份。(采用OAuth授权方式不需要此参数) |
ids | true | int64 | 指定需要获取的微博ID。 |
注意事项
无
返回结果
XML示例
<?xml version="1.0" encoding="UTF-8"?> //成功返回: <statuse> <created_at>Wed Dec 15 09:53:00 +0800 2010</created_at > <id>4460157511</id> <text>手机成功认证咯~~</text> <source><a href=\"http://t.sina.com.cn\" rel=\"nofollow\">新浪微博</a></souce> <favorite>false</favorite> <truncated>false</truncated> <in_reply_to_status_id /> <in_reply_to_user_id /> <in_reply_to_screen_name /> <reposts_count /> <comments_count /> <mid /> <geo>null</geo> <user> <id>1642466141</id> <screen_name>huchao</screen_name> <name>huchao</name> <province>11</province> <city>8</city> <location>北京 海淀区</location> <description>很不给力的80后小青年一枚</description> <url>http://tuoniao.org</url> <profile_image_url>http://tp2.sinaimg.cn/1642466141/50/1285424071/1</profile_image_url> <profile_image_url_large>http://tp2.sinaimg.cn/1642466141/50/1285424071/1</profile_image_url_large> <domain>westy</domain> <gender>m</gender> <followers_count>129</followers_count> <friends_count>80</friends_count> <statuses_count>370</statuses_count> <favourites_count>3</favourites_count> <created_at>Fri Aug 28 00:00:00 +0800 2009</created_at> <following>false</following> <follow_me>false</follow_me> <verified>false</verified> <verified_reason>false</verified_reason> <online_status><online_status> <allow_all_act_msg>false</allow_all_act_msg> <geo_enabled>true</geo_enabled> </user> <annotations /> </status> //失败返回: <err_info> <hash> <request>/account/profile/education.xml</request>//调用地址 <error_code>500</error_code>//错误代码 <error>50001:Error: system error!</error>//错误信息 </hash> <hash /> …… </err_info>
JSON示例
其他
无