User/lists/subscriptions
(→请求参数) |
小 (→:user/lists/subscriptions) |
||
(未显示1个用户的3个中间版本) | |||
第2行: | 第2行: | ||
列出用户订阅的所有list列表 | 列出用户订阅的所有list列表 | ||
− | + | ==URL== | |
http://api.t.sina.com.cn/:user/lists/subscriptions.format | http://api.t.sina.com.cn/:user/lists/subscriptions.format | ||
− | + | ==格式== | |
xml, json | xml, json | ||
− | + | ==HTTP请求方式== | |
GET | GET | ||
− | + | ==是否需要登录== | |
true | true | ||
− | + | ==请求数限制== | |
true | true | ||
− | + | ==请求参数== | |
* cursor:可选参数。将结果分页,每一页包含20个lists。由-1开始分页,定位一个id地址,通过比较id大小实现next_cursor 和previous_cursor向前或向后翻页。 | * cursor:可选参数。将结果分页,每一页包含20个lists。由-1开始分页,定位一个id地址,通过比较id大小实现next_cursor 和previous_cursor向前或向后翻页。 | ||
:示例:http://api.t.sina.com.cn/:user/lists/subscriptions.xml?cursor=8 | :示例:http://api.t.sina.com.cn/:user/lists/subscriptions.xml?cursor=8 | ||
− | + | ==使用示例== | |
====XML==== | ====XML==== | ||
− | curl -u uid:password http://api.t.sina.com.cn/ | + | curl -u uid:password http://api.t.sina.com.cn/testuser/lists/subscriptions.xml?source=appkey |
====Json==== | ====Json==== | ||
− | curl -u uid:password http://api.t.sina.com.cn/ | + | curl -u uid:password http://api.t.sina.com.cn/testuser/lists/subscriptions.json?source=appkey |
− | + | ==返回结果== | |
====XML==== | ====XML==== | ||
<pre> | <pre> | ||
第37行: | 第37行: | ||
<id>49</id> | <id>49</id> | ||
<name>list3</name> | <name>list3</name> | ||
− | <full_name>@ | + | <full_name>@testuser/list3</full_name> |
<slug>list3</slug> | <slug>list3</slug> | ||
<description/> | <description/> | ||
<subscriber_count>0</subscriber_count> | <subscriber_count>0</subscriber_count> | ||
<member_count>0</member_count> | <member_count>0</member_count> | ||
− | <uri>/ | + | <uri>/testuser/list3</uri> |
<mode>public</mode> | <mode>public</mode> | ||
<user> | <user> | ||
<id>1642466141</id> | <id>1642466141</id> | ||
− | <screen_name> | + | <screen_name>testuser</screen_name> |
− | <name> | + | <name>testuser</name> |
<province>11</province> | <province>11</province> | ||
<city>8</city> | <city>8</city> | ||
第54行: | 第54行: | ||
<url>http://tuoniao.org</url> | <url>http://tuoniao.org</url> | ||
<profile_image_url>http://tp2.sinaimg.cn/1642466141/50/1281523744</profile_image_url> | <profile_image_url>http://tp2.sinaimg.cn/1642466141/50/1281523744</profile_image_url> | ||
− | <domain> | + | <domain>testuser</domain> |
<gender>m</gender> | <gender>m</gender> | ||
<followers_count>41</followers_count> | <followers_count>41</followers_count> | ||
第79行: | 第79行: | ||
{ | { | ||
"description": "", | "description": "", | ||
− | "full_name": "@ | + | "full_name": "@testuser/list3", |
"id": 49, | "id": 49, | ||
"member_count": 0, | "member_count": 0, | ||
第86行: | 第86行: | ||
"slug": "list3", | "slug": "list3", | ||
"subscriber_count": 0, | "subscriber_count": 0, | ||
− | "uri": "/ | + | "uri": "/testuser/list3", |
"user": { | "user": { | ||
"allow_all_act_msg": false, | "allow_all_act_msg": false, | ||
第92行: | 第92行: | ||
"created_at": "Fri Aug 28 00:00:00 +0800 2009", | "created_at": "Fri Aug 28 00:00:00 +0800 2009", | ||
"description": "\u53ef\u60b2\u7684\u4e2d\u56fd\u4e92\u8054\u7f51\u4ece\u4e1a\u8005\uff0c\u4e0d\u660e\u771f\u76f8\u7684\u7fa4\u4f17\u3002", | "description": "\u53ef\u60b2\u7684\u4e2d\u56fd\u4e92\u8054\u7f51\u4ece\u4e1a\u8005\uff0c\u4e0d\u660e\u771f\u76f8\u7684\u7fa4\u4f17\u3002", | ||
− | "domain": " | + | "domain": "testuser", |
"favourites_count": 0, | "favourites_count": 0, | ||
"followers_count": 41, | "followers_count": 41, | ||
第101行: | 第101行: | ||
"id": 1642466141, | "id": 1642466141, | ||
"location": "\u5317\u4eac \u6d77\u6dc0\u533a", | "location": "\u5317\u4eac \u6d77\u6dc0\u533a", | ||
− | "name": " | + | "name": "testuser", |
"profile_image_url": "http://tp2.sinaimg.cn/1642466141/50/1281523744", | "profile_image_url": "http://tp2.sinaimg.cn/1642466141/50/1281523744", | ||
"province": "11", | "province": "11", | ||
− | "screen_name": " | + | "screen_name": "testuser", |
"statuses_count": 43, | "statuses_count": 43, | ||
"url": "http://tuoniao.org", | "url": "http://tuoniao.org", | ||
第111行: | 第111行: | ||
} | } | ||
], | ], | ||
− | " | + | "next_cursor": 0, |
"previous_curosr": 0 | "previous_curosr": 0 | ||
} | } | ||
</pre> | </pre> |
2010年12月24日 (五) 16:46的最后版本
目录 |
:user/lists/subscriptions
列出用户订阅的所有list列表
URL
http://api.t.sina.com.cn/:user/lists/subscriptions.format
格式
xml, json
HTTP请求方式
GET
是否需要登录
true
请求数限制
true
请求参数
- cursor:可选参数。将结果分页,每一页包含20个lists。由-1开始分页,定位一个id地址,通过比较id大小实现next_cursor 和previous_cursor向前或向后翻页。
使用示例
XML
curl -u uid:password http://api.t.sina.com.cn/testuser/lists/subscriptions.xml?source=appkey
Json
curl -u uid:password http://api.t.sina.com.cn/testuser/lists/subscriptions.json?source=appkey
返回结果
XML
<?xml version="1.0" encoding="UTF-8"?> <lists_list> <lists> <list> <id>49</id> <name>list3</name> <full_name>@testuser/list3</full_name> <slug>list3</slug> <description/> <subscriber_count>0</subscriber_count> <member_count>0</member_count> <uri>/testuser/list3</uri> <mode>public</mode> <user> <id>1642466141</id> <screen_name>testuser</screen_name> <name>testuser</name> <province>11</province> <city>8</city> <location>北京 海淀区</location> <description></description> <url>http://tuoniao.org</url> <profile_image_url>http://tp2.sinaimg.cn/1642466141/50/1281523744</profile_image_url> <domain>testuser</domain> <gender>m</gender> <followers_count>41</followers_count> <friends_count>55</friends_count> <statuses_count>43</statuses_count> <favourites_count>0</favourites_count> <created_at>Fri Aug 28 00:00:00 +0800 2009</created_at> <following>false</following> <verified>false</verified> <allow_all_act_msg>false</allow_all_act_msg> <geo_enabled>false</geo_enabled> </user> </list> </lists> <previous_curosr>0</previous_curosr> <next_curosr>0</next_curosr> </lists_list>
Json
{ "lists": [ { "description": "", "full_name": "@testuser/list3", "id": 49, "member_count": 0, "mode": "public", "name": "list3", "slug": "list3", "subscriber_count": 0, "uri": "/testuser/list3", "user": { "allow_all_act_msg": false, "city": "8", "created_at": "Fri Aug 28 00:00:00 +0800 2009", "description": "\u53ef\u60b2\u7684\u4e2d\u56fd\u4e92\u8054\u7f51\u4ece\u4e1a\u8005\uff0c\u4e0d\u660e\u771f\u76f8\u7684\u7fa4\u4f17\u3002", "domain": "testuser", "favourites_count": 0, "followers_count": 41, "following": false, "friends_count": 55, "gender": "m", "geo_enabled": false, "id": 1642466141, "location": "\u5317\u4eac \u6d77\u6dc0\u533a", "name": "testuser", "profile_image_url": "http://tp2.sinaimg.cn/1642466141/50/1281523744", "province": "11", "screen_name": "testuser", "statuses_count": 43, "url": "http://tuoniao.org", "verified": false } } ], "next_cursor": 0, "previous_curosr": 0 }
文档更新时间: 2010-12-24