Direct messages/userlist

跳转到: 导航, 搜索
 
第8行: 第8行:
 
params={{api_args|count|false|int|返回用户条数,默认为50。}}
 
params={{api_args|count|false|int|返回用户条数,默认为50。}}
 
{{api_args|cursor|false|int|返回结果的起始位置}}|
 
{{api_args|cursor|false|int|返回结果的起始位置}}|
getParam=|
+
getParam=&cursor=2&count=2|
 
postParam=|
 
postParam=|
 
result=
 
result=
 
===XML示例===
 
===XML示例===
===JSON示例===
+
<pre>
 +
<users>
 +
<user>
 +
<id>1461357680</id>
 +
<screen_name>仲占杰</screen_name>
 +
<name>仲占杰</name>
 +
<province>33</province>
 +
<city>1</city>
 +
<location>浙江 杭州</location>
 +
<description>双鱼是我的星座,狗是我的生肖,男是我的性别,杭州是我的家
 +
乡。演员是我的职业,写作是我的爱好。我是自豪的80后!</description>
 +
<url>http://blog.sina.com.cn/zhongzhanjie</url>
 +
<profile_image_url>http://tp1.sinaimg.cn/
 +
1461357680/50/1281916103/1</profile_image_url>
 +
<domain>zhongzhanjie</domain>
 +
<gender>m</gender>
 +
<followers_count>60766</followers_count>
 +
<friends_count>75</friends_count>
 +
<statuses_count>713</statuses_count>
 +
<favourites_count>1</favourites_count>
 +
<created_at>Mon Jan 25 00:00:00 +0800 2010</created_at>
 +
<following>false</following>
 +
<verified>true</verified>
 +
<allow_all_act_msg>true</allow_all_act_msg>
 +
<geo_enabled>true</geo_enabled>
 +
<status>
 +
<created_at>Fri Nov 05 16:23:58 +0800 2010</created_at>
 +
<id>3458299141</id>
 +
<text>“单挑还是群架?你自己选!”“单挑怎么说?”“你一个单挑我们六
 +
个!”“群架又怎么说?”“我们六个群殴你一个!”目前的局势,就是以腾讯为首,带领一帮
 +
小弟金山、搜狗、傲游、可牛、百度联手跟360对阵,这架势是不是很眼熟?没错,这不就
 +
是六大派围攻光明顶吗?结局会是什么?还用说吗?</text>
 +
<source>
 +
<a href="http://t.sina.com.cn">新浪微博</a>
 +
</source>
 +
<favorited>false</favorited>
 +
<truncated>false</truncated>
 +
<geo/>
 +
<in_reply_to_status_id/>
 +
<in_reply_to_user_id/>
 +
<in_reply_to_screen_name/>
 +
</status>
 +
</user>
 +
......
 +
<users>
 +
</pre>
 
|
 
|
 
useAge=无|
 
useAge=无|
 
otherInfo=无
 
otherInfo=无
 
}}
 
}}

2010年12月27日 (一) 11:09的最后版本

目录

direct_messages/userlist

返回与当前登陆用户有私信往来的用户列表

URL

http://api.t.sina.com.cn/direct_messages/userlist.(json%7Cxml)

支持格式

XML/JSON

HTTP请求方式

GET

是否需要登录

true
关于授权机制,参见授权机制声明

请求数限制

true
关于请求数限制,参见接口访问权限说明

请求参数

  必选 类型及范围 说明
source true string 申请应用时分配的AppKey,调用接口时候代表应用的唯一身份。(采用OAuth授权方式不需要此参数)
count false int 返回用户条数,默认为50。
cursor false int 返回结果的起始位置

注意事项

返回结果

XML示例

<users>
<user>
<id>1461357680</id>
<screen_name>仲占杰</screen_name>
<name>仲占杰</name>
<province>33</province>
<city>1</city>
<location>浙江 杭州</location>
<description>双鱼是我的星座,狗是我的生肖,男是我的性别,杭州是我的家
乡。演员是我的职业,写作是我的爱好。我是自豪的80后!</description>
<url>http://blog.sina.com.cn/zhongzhanjie</url>
<profile_image_url>http://tp1.sinaimg.cn/
1461357680/50/1281916103/1</profile_image_url>
<domain>zhongzhanjie</domain>
<gender>m</gender>
<followers_count>60766</followers_count>
<friends_count>75</friends_count>
<statuses_count>713</statuses_count>
<favourites_count>1</favourites_count>
<created_at>Mon Jan 25 00:00:00 +0800 2010</created_at>
<following>false</following>
<verified>true</verified>
<allow_all_act_msg>true</allow_all_act_msg>
<geo_enabled>true</geo_enabled>
<status>
<created_at>Fri Nov 05 16:23:58 +0800 2010</created_at>
<id>3458299141</id>
<text>“单挑还是群架?你自己选!”“单挑怎么说?”“你一个单挑我们六
个!”“群架又怎么说?”“我们六个群殴你一个!”目前的局势,就是以腾讯为首,带领一帮
小弟金山、搜狗、傲游、可牛、百度联手跟360对阵,这架势是不是很眼熟?没错,这不就
是六大派围攻光明顶吗?结局会是什么?还用说吗?</text>
<source>
<a href="http://t.sina.com.cn">新浪微博</a>
</source>
<favorited>false</favorited>
<truncated>false</truncated>
<geo/>
<in_reply_to_status_id/>
<in_reply_to_user_id/>
<in_reply_to_screen_name/>
</status>
</user>
......
<users>

其他

文档更新时间: 2010-12-27