DELETE/:user/lists/:list id
(→:user/lists/:id) |
|||
第22行: | 第22行: | ||
===使用示例=== | ===使用示例=== | ||
====XML==== | ====XML==== | ||
− | curl -u uid:password -d "source=appkey&_method=DELETE" http://api.t.sina.com.cn/ | + | curl -u uid:password -d "source=appkey&_method=DELETE" http://api.t.sina.com.cn/testuser/lists/testlist.xml |
====Json==== | ====Json==== | ||
− | curl -u uid:password -d "source=appkey&_method=DELETE" http://api.t.sina.com.cn/ | + | curl -u uid:password -d "source=appkey&_method=DELETE" http://api.t.sina.com.cn/testuser/lists/testlist.json |
===返回结果=== | ===返回结果=== | ||
第34行: | 第34行: | ||
<id>343</id> | <id>343</id> | ||
<name>testlist</name> | <name>testlist</name> | ||
− | <full_name>@ | + | <full_name>@testuser/testlist</full_name> |
<slug>testlist</slug> | <slug>testlist</slug> | ||
<description/> | <description/> | ||
第51行: | 第51行: | ||
<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> | ||
第69行: | 第69行: | ||
{ | { | ||
"description": "", | "description": "", | ||
− | "full_name": "@ | + | "full_name": "@testuser/testlist", |
"id": 344, | "id": 344, | ||
"member_count": 0, | "member_count": 0, | ||
第76行: | 第76行: | ||
"slug": "testlist", | "slug": "testlist", | ||
"subscriber_count": 0, | "subscriber_count": 0, | ||
− | "uri": "/ | + | "uri": "/testuser/testlist", |
"user": { | "user": { | ||
"allow_all_act_msg": false, | "allow_all_act_msg": false, | ||
第82行: | 第82行: | ||
"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, | ||
第91行: | 第91行: | ||
"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", |
2010年8月17日 (二) 14:46的版本
目录 |
:user/lists/:id
删除指定的list,只有创建者才能删除。 不能发出DELETE申请的客户端可以POST 带有_method=DELETE的额外参数。
URL
http://api.t.sina.com.cn/:user/lists/:id.format
格式
xml, json
HTTP请求方式
DELETE
是否需要登录
true
请求数限制
false
请求参数
- id: 必须参数。List的id或slug。
使用示例
XML
curl -u uid:password -d "source=appkey&_method=DELETE" http://api.t.sina.com.cn/testuser/lists/testlist.xml
Json
curl -u uid:password -d "source=appkey&_method=DELETE" http://api.t.sina.com.cn/testuser/lists/testlist.json
返回结果
XML
<?xml version="1.0" encoding="UTF-8"?> <list> <id>343</id> <name>testlist</name> <full_name>@testuser/testlist</full_name> <slug>testlist</slug> <description/> <subscriber_count>0</subscriber_count> <member_count>0</member_count> <uri>/huchao/testlist</uri> <mode>public</mode> <user> <id>1642466141</id> <screen_name>huchao</screen_name> <name>huchao</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>
Json
{ "description": "", "full_name": "@testuser/testlist", "id": 344, "member_count": 0, "mode": "public", "name": "testlist", "slug": "testlist", "subscriber_count": 0, "uri": "/testuser/testlist", "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 } }