Users/batch show
目录 |
users/batch_show
批量获取用户基本信息。
URL
http://api.t.sina.com.cn/users/batch_show.(json%7Cxml)
支持格式
XML/JSON
HTTP请求方式
GET
是否需要登录
true
关于授权机制,参见授权机制声明
请求数限制
true
关于请求数限制,参见接口访问权限说明
请求参数
必选 | 类型及范围 | 说明 | |
---|---|---|---|
source | true | string | 申请应用时分配的AppKey,调用接口时候代表应用的唯一身份。(采用OAuth授权方式不需要此参数) |
user_id | false | int64 | 用户ID,一次最多20个。 |
screen_name | false | string | 用户昵称,一次最多20个。 |
注意事项
返回结果
XML示例
<?xml version="1.0" encoding="UTF-8"?> //成功返回: <?xml version="1.0" encoding="UTF-8"?> //成功返回: <users> <user> <id>1363183595</id> <screen_name>zach-chen</screen_name> <name>zach-chen</name> <province>11</province> <city>8</city> <location>北京 海淀区</location> <constellation>处女座</constellation> <description /> <url>http://1</url> <profile_image_url>http://tp4.sinaimg.cn/1363183595/50/1292221750/1</profile_image_url> <domain>callmezach</domain> <gender>m</gender> <followers_count> 6</followers> <friends_count>2</friends_count> <statuses_count>14</statuses_count> <favourites_count>0</favourites_count> <created_at>Fri Aug 20 00:00:00 +0800 2010</created_at> <following>false</following> <allow_all_act_msg>true</allow_all_act_msg> <geo_enabled>false</geo_enabled> <verified>false</verified> <status> <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> </source> <favorite>false</favorite> <truncated>false</truncated> <in_reply_to_status_id /> <in_reply_to_user_id /> <in_reply_to_screen_name /> <geo>null</geo> <annotations /> </status> </user> <user /> …… </users> //失败返回: <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示例
[ { "id":1363183595, "screen_name":"zach-chen", "name":"zach-chen", "province":"11", "city":"8", "location":"北京 海淀区", "description":"", "url":"http://1", "profile_image_url":"http://tp4.sinaimg.cn/1363183595/50/1292221750/1", "domain":"callmezach", "gender":"m", "followers_count":24, "friends_count":35, "statuses_count":165, "favourites_count":19, "created_at":"Fri Aug 20 00:00:00 +0800 2010", "following":false, "allow_all_act_msg":true, "geo_enabled":false, "verified":false, "status":{ "created_at":"Thu Feb 17 23:22:02 +0800 2011", "id":6501452629, "text":"我快成gmail additive了……现在只要一上网必然一直开着gmail然后不时地切过去查看……", "source":"<a href=\"http://t.sina.com.cn\" rel=\"nofollow\">新浪微博</a>", "favorited":false, "truncated":false, "in_reply_to_status_id":"", "in_reply_to_user_id":"", "in_reply_to_screen_name":"", "geo":null, "annotations":[{"cartoon":false}] } } ]
其他
无