Tags/destroy

跳转到: 导航, 搜索
第1行: 第1行:
==tags/destroy==
+
{{api_desc2|
删除标签
+
uri=tags/destroy|
 
+
desc=删除标签|
===URL===
+
format=XML/JSON|
http://api.t.sina.com.cn/tags/destroy.format
+
httpMethod=POST/DELETE|
+
needAuth=true|
===格式===
+
rateLimit=true|
xml, json
+
params={{api_args|tag_id|true|int64|要删除的标签ID}}|
 
+
getParam=|
===HTTP请求方式===
+
postParam=-d "tag_id=1234"|
POST
+
result=
+
===XML示例===
===是否需要登录:===
+
true
+
+
===请求数限制===
+
true
+
 
+
===请求参数===
+
* tag_id:标签ID,必填参数
+
* 示例:http://api.t.sina.com.cn/tags/destroy.xml?source=0000000&tag_id=123123
+
 
+
===返回结果===
+
====xml====
+
 
<pre>
 
<pre>
 
<?xml version="1.0" encoding="UTF-8"?>
 
<?xml version="1.0" encoding="UTF-8"?>
 
<result>0</result>
 
<result>0</result>
 
</pre>
 
</pre>
====Json====
+
===JSON示例===
 
<pre>
 
<pre>
[{"result":"0"}]
+
{
</pre>
+
    "result" : "0"
 
+
}
=== 使用示例 ===
+
</pre>|
* xml:
+
useAge=无|
* curl -u xxx:xxxx http://api.t.sina.com.cn/tags/destroy.xml?source=0000000&tag_id=123123
+
otherInfo=
* json:
+
}}{{#a:showgrade}}
* curl -u xxx:xxxx http://api.t.sina.com.cn/tags/destroy.json?source=0000000&tag_id=123123
+

2010年12月7日 (二) 14:13的版本

目录

tags/destroy

删除标签

URL

http://api.t.sina.com.cn/tags/destroy.(json%7Cxml)

支持格式

XML/JSON

HTTP请求方式

POST/DELETE

是否需要登录

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

请求数限制

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

请求参数

  必选 类型及范围 说明
source true string 申请应用时分配的AppKey,调用接口时候代表应用的唯一身份。(采用OAuth授权方式不需要此参数)
tag_id true int64 要删除的标签ID

注意事项

返回结果

XML示例

<?xml version="1.0" encoding="UTF-8"?>
<result>0</result>

JSON示例

{
    "result" : "0"
}

其他

api评价