Tags/destroy batch/en

跳转到: 导航, 搜索

目录

tags/destroy_batch

Delete a batch of tags for the authenticating user.

URL

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

Supported Formats

XML/JSON

HTTP Request Method

POST/DELETE

Requires Authentication

true
See the Authorization Mechanism Statement for authorization details

Requests Count Limitation

true
See the Interface Access Rights Statement for the Request Count Limitaiton details.

Request Parameters

  Requires Type and Range Description
source true string AppKey for the application to identify it. ( This parameter is not needed when using OAuth)
ids true int64 Tag ID that is going to be deleted. These should be separated by simeangle comma, and are limited by 20 ID per call.

Notes

None

Example Request

XML
curl -u "username:password" -d "ids=1234,5678" "http://api.t.sina.com.cn/tags/destroy_batch.xml?source=appkey"
JSON
curl -u "username:password" -d "ids=1234,5678" "http://api.t.sina.com.cn/tags/destroy_batch.json?source=appkey"

Response

XML Example

<?xml version="1.0" encoding="UTF-8"?>
<tags>
  <tagid>1234</tagid>
  <tagid>5678</tagid>
</tags>

JSON Example

[
    {
        "tagid" : "1234"
    },
    {
        "tagid" : "5678"
    }
]

Others

None