Tags/destroy

跳转到: 导航, 搜索
(格式)
 
(未显示2个用户的5个中间版本)
第1行: 第1行:
==tags/destroy==
+
{{api_desc2|
删除标签
+
uri=tags/destroy|
 
+
desc=删除标签|
===URL===
+
format=XML/JSON|
http://api.t.sina.com.cn/tags/destroy
+
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示例===
===是否需要登录:===
+
<pre>
true
+
<?xml version="1.0" encoding="UTF-8"?>
+
<result>0</result>
===请求数限制===
+
</pre>
true
+
===JSON示例===
 
+
<pre>
===请求参数===
+
{
* tag_id:标签ID,必填参数
+
    "result" : "0"
* 示例:http://api.t.sina.com.cn/tags/destroy.xml?source=0000000&tag_id=123123
+
}
 
+
</pre>|
===返回结果===
+
useAge=无|
Xml示例:
+
otherInfo=
<?xml version="1.0" encoding="UTF-8"?><result>0</result>
+
}}
Json示例:
+
[{"result":"0"}
+
 
+
=== 使用示例 ===
+
* xml:
+
* curl -u xxx:xxxx http://api.t.sina.com.cn/tags/destroy.xml?source=0000000&tag_id=123123
+
* json:
+
* curl -u xxx:xxxx http://api.t.sina.com.cn/tags/destroy.json?source=0000000&tag_id=123123
+

2012年9月24日 (一) 11:46的最后版本

目录

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"
}

其他

文档更新时间: 2012-09-24