Favorites/destroy batch

跳转到: 导航, 搜索
 
(未显示1个用户的1个中间版本)
第8行: 第8行:
 
params={{api_args|ids|true|int64|要删除的一组已收藏的微博消息ID,用半角逗号隔开,一次提交最多提供20个ID。}}|
 
params={{api_args|ids|true|int64|要删除的一组已收藏的微博消息ID,用半角逗号隔开,一次提交最多提供20个ID。}}|
 
getParam=|
 
getParam=|
postParam=-X DELETE|
+
postParam=-d "ids=12345,67891"|
 
result=
 
result=
 
===XML示例===
 
===XML示例===
 
<pre>
 
<pre>
<?xml version="1.0" encoding="UTF-8"?>
 
 
<statuses>
 
<statuses>
 
   <status>
 
   <status>
     <created_at>Thu Mar 18 19:07:05 +0800 2010</created_at>
+
     <created_at>Mon Nov 29 16:08:43 +0800 2010</created_at>
     <id>1</id>
+
     <id>3958728723</id>
     <text>这么小就入党了 敬仰~</text>
+
     <text>各位开发者,我们的论坛上线啦~http://sinaurl.cn/h4FWc7 欢迎大家的参与~另外,关于技术相关的问题,可以在论坛上提出,也可以@微博API 这个官方技术支持账号哦~感谢大家对开放平台的支持~[呵呵]</text>
 
     <source>
 
     <source>
       <a href="http://news.sina.com.cn/wap/wbk.html/">新浪微博手机版</a>
+
       <a href="http://t.sina.com.cn">新浪微博</a>
 
     </source>
 
     </source>
     <favorited>true</favorited>
+
     <favorited>false</favorited>
 
     <truncated>false</truncated>
 
     <truncated>false</truncated>
 
     <geo/>
 
     <geo/>
第28行: 第27行:
 
     <in_reply_to_screen_name/>
 
     <in_reply_to_screen_name/>
 
     <user>
 
     <user>
       <id>1152759471</id>
+
       <id>11051</id>
       <screen_name>老王</screen_name>
+
       <screen_name>微博开放平台</screen_name>
       <name>老王</name>
+
       <name>微博开放平台</name>
 
       <province>11</province>
 
       <province>11</province>
 
       <city>8</city>
 
       <city>8</city>
 
       <location>北京 海淀区</location>
 
       <location>北京 海淀区</location>
       <description>哼。。。 花样真多。 讨厌。</description>
+
       <description>新浪微博开放平台市场推广官方账号,如有技术问题,请@微博API或者发私信给微博API</description>
       <url>http://1</url>
+
       <url>http://open.t.sina.com.cn/</url>
       <profile_image_url>http://tp4.sinaimg.cn/1152759471/50/1263371934</profile_image_url>
+
       <profile_image_url>http://tp4.sinaimg.cn/11051/50/1280283165/1</profile_image_url>
       <domain>hotpixel</domain>
+
       <domain>openapi</domain>
 
       <gender>m</gender>
 
       <gender>m</gender>
       <followers_count>1567</followers_count>
+
       <followers_count>13034</followers_count>
       <friends_count>202</friends_count>
+
       <friends_count>5</friends_count>
       <statuses_count>6776</statuses_count>
+
       <statuses_count>157</statuses_count>
 
       <favourites_count>0</favourites_count>
 
       <favourites_count>0</favourites_count>
       <created_at>Fri Aug 28 00:00:00 +0800 2009</created_at>
+
       <created_at>Wed Jan 20 00:00:00 +0800 2010</created_at>
 
       <following>false</following>
 
       <following>false</following>
       <verified>false</verified>
+
       <verified>true</verified>
       <allow_all_act_msg>false</allow_all_act_msg>
+
       <allow_all_act_msg>true</allow_all_act_msg>
       <geo_enabled>false</geo_enabled>
+
       <geo_enabled>true</geo_enabled>
 
     </user>
 
     </user>
    <retweeted_status>
 
      <created_at>Thu Mar 18 19:05:52 +0800 2010</created_at>
 
      <id>27657268</id>
 
      <text>班里开始交团费了,跟我没关系</text>
 
      <source>
 
        <a href="http://news.sina.com.cn/wap/wbk.html/">新浪微博手机版</a>
 
      </source>
 
      <favorited>true</favorited>
 
      <truncated>false</truncated>
 
      <geo/>
 
      <in_reply_to_status_id/>
 
      <in_reply_to_user_id/>
 
      <in_reply_to_screen_name/>
 
      <user>
 
        <id>1654703984</id>
 
        <screen_name>高考铅笔亚克西</screen_name>
 
        <name>高考铅笔亚克西</name>
 
        <province>42</province>
 
        <city>1</city>
 
        <location>湖北 武汉</location>
 
        <description>在通往高考的路上乳摇狂奔,偶尔发骚回头抛个媚眼骂句操蛋,切不可以为姐就是招之即上挥之自摸的小娘儿们。好不容易成年了,姐要更加有湿想嗯哼。</description>
 
        <url/>
 
        <profile_image_url>http://tp1.sinaimg.cn/1654703984/50/1264140632</profile_image_url>
 
        <domain>kimmy14</domain>
 
        <gender>f</gender>
 
        <followers_count>1330</followers_count>
 
        <friends_count>755</friends_count>
 
        <statuses_count>3354</statuses_count>
 
        <favourites_count>0</favourites_count>
 
        <created_at>Mon Oct 19 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>
 
    </retweeted_status>
 
 
   </status>
 
   </status>
  ...
+
...
 
</statuses>
 
</statuses>
 
</pre>
 
</pre>
第93行: 第56行:
 
[
 
[
 
     {
 
     {
         "created_at" : "Thu Mar 18 19:07:05 +0800 2010",
+
         "created_at" : "Mon Nov 29 16:08:43 +0800 2010",
         "text" : "这么小就入党了 敬仰~",
+
         "text" : "各位开发者,我们的论坛上线啦~http://sinaurl.cn/h4FWc7 欢迎大家的参与~另外,关于技术相关的问题,可以在论坛上提出,也可以@微博API 这个官方技术支持账号哦~感谢大家对开放平台的支持~[呵呵]",
 
         "truncated" : false,
 
         "truncated" : false,
        "retweeted_status" :
 
        {
 
            "created_at" : "Thu Mar 18 19:05:52 +0800 2010",
 
            "text" : "班里开始交团费了,跟我没关系",
 
            "truncated" : false,
 
            "in_reply_to_status_id" : "",
 
            "in_reply_to_screen_name" : "",
 
            "geo" : null,
 
            "user" :
 
            {
 
                "name" : "高考铅笔亚克西",
 
                "domain" : "kimmy14",
 
                "geo_enabled" : false,
 
                "followers_count" : 1330,
 
                "statuses_count" : 3354,
 
                "favourites_count" : 0,
 
                "city" : "1",
 
                "description" : "在通往高考的路上乳摇狂奔,偶尔发骚回头抛个媚眼骂句操蛋,切不可以为姐就是招之即上挥之自摸的小娘儿们。好不容易成年了,姐要更加有湿想嗯哼。",
 
                "verified" : false,
 
                "id" : 1654703984,
 
                "gender" : "f",
 
                "friends_count" : 755,
 
                "screen_name" : "高考铅笔亚克西",
 
                "allow_all_act_msg" : false,
 
                "following" : false,
 
                "url" : "",
 
                "profile_image_url" : "http://tp1.sinaimg.cn/1654703984/50/1264140632",
 
                "created_at" : "Mon Oct 19 00:00:00 +0800 2009",
 
                "province" : "42",
 
                "location" : "湖北 武汉"
 
            },
 
            "favorited" : true,
 
            "in_reply_to_user_id" : "",
 
            "id" : 27657268,
 
            "source" : "<a href=\"http://news.sina.com.cn/wap/wbk.html/\" rel=\"nofollow\">新浪微博手机版</a>"
 
        },
 
 
         "in_reply_to_status_id" : "",
 
         "in_reply_to_status_id" : "",
 
         "in_reply_to_screen_name" : "",
 
         "in_reply_to_screen_name" : "",
第137行: 第64行:
 
         "user" :  
 
         "user" :  
 
         {
 
         {
             "name" : "老王",
+
             "name" : "微博开放平台",
             "domain" : "hotpixel",
+
             "domain" : "openapi",
             "geo_enabled" : false,
+
             "geo_enabled" : true,
             "followers_count" : 1567,
+
             "followers_count" : 13034,
             "statuses_count" : 6776,
+
             "statuses_count" : 157,
 
             "favourites_count" : 0,
 
             "favourites_count" : 0,
 
             "city" : "8",
 
             "city" : "8",
             "description" : "哼。。。 花样真多。 讨厌。",
+
             "description" : "新浪微博开放平台市场推广官方账号,如有技术问题,请@微博API或者发私信给微博API",
             "verified" : false,
+
             "verified" : true,
             "id" : 1152759471,
+
             "id" : 11051,
 
             "gender" : "m",
 
             "gender" : "m",
             "friends_count" : 202,
+
             "friends_count" : 5,
             "screen_name" : "老王",
+
             "screen_name" : "微博开放平台",
             "allow_all_act_msg" : false,
+
             "allow_all_act_msg" : true,
 
             "following" : false,
 
             "following" : false,
             "url" : "http://1",
+
             "url" : "http://open.t.sina.com.cn/",
             "profile_image_url" : "http://tp4.sinaimg.cn/1152759471/50/1263371934",
+
             "profile_image_url" : "http://tp4.sinaimg.cn/11051/50/1280283165/1",
             "created_at" : "Fri Aug 28 00:00:00 +0800 2009",
+
             "created_at" : "Wed Jan 20 00:00:00 +0800 2010",
 
             "province" : "11",
 
             "province" : "11",
 
             "location" : "北京 海淀区"
 
             "location" : "北京 海淀区"
 
         },
 
         },
         "favorited" : true,
+
         "favorited" : false,
 
         "in_reply_to_user_id" : "",
 
         "in_reply_to_user_id" : "",
         "id" : 1,
+
         "id" : 3958728723,
         "source" : "<a href=\"http://news.sina.com.cn/wap/wbk.html/\" rel=\"nofollow\">新浪微博手机版</a>"
+
         "source" : "<a href=\"http://t.sina.com.cn\" rel=\"nofollow\">新浪微博</a>"
 
     },
 
     },
 +
...
 
]
 
]
 
</pre>|
 
</pre>|

2010年12月8日 (三) 15:40的最后版本

目录

favorites/destroy_batch

删除微博收藏。注意:只能删除自己收藏的信息。

URL

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

支持格式

XML/JSON

HTTP请求方式

POST/DELETE

是否需要登录

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

请求数限制

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

请求参数

  必选 类型及范围 说明
source true string 申请应用时分配的AppKey,调用接口时候代表应用的唯一身份。(采用OAuth授权方式不需要此参数)
ids true int64 要删除的一组已收藏的微博消息ID,用半角逗号隔开,一次提交最多提供20个ID。

注意事项

返回结果

XML示例

<statuses>
  <status>
    <created_at>Mon Nov 29 16:08:43 +0800 2010</created_at>
    <id>3958728723</id>
    <text>各位开发者,我们的论坛上线啦~http://sinaurl.cn/h4FWc7 欢迎大家的参与~另外,关于技术相关的问题,可以在论坛上提出,也可以@微博API 这个官方技术支持账号哦~感谢大家对开放平台的支持~[呵呵]</text>
    <source>
      <a href="http://t.sina.com.cn">新浪微博</a>
    </source>
    <favorited>false</favorited>
    <truncated>false</truncated>
    <geo/>
    <in_reply_to_status_id/>
    <in_reply_to_user_id/>
    <in_reply_to_screen_name/>
    <user>
      <id>11051</id>
      <screen_name>微博开放平台</screen_name>
      <name>微博开放平台</name>
      <province>11</province>
      <city>8</city>
      <location>北京 海淀区</location>
      <description>新浪微博开放平台市场推广官方账号,如有技术问题,请@微博API或者发私信给微博API</description>
      <url>http://open.t.sina.com.cn/</url>
      <profile_image_url>http://tp4.sinaimg.cn/11051/50/1280283165/1</profile_image_url>
      <domain>openapi</domain>
      <gender>m</gender>
      <followers_count>13034</followers_count>
      <friends_count>5</friends_count>
      <statuses_count>157</statuses_count>
      <favourites_count>0</favourites_count>
      <created_at>Wed Jan 20 00:00:00 +0800 2010</created_at>
      <following>false</following>
      <verified>true</verified>
      <allow_all_act_msg>true</allow_all_act_msg>
      <geo_enabled>true</geo_enabled>
    </user>
  </status>
...
</statuses>

JSON示例

[
    {
        "created_at" : "Mon Nov 29 16:08:43 +0800 2010",
        "text" : "各位开发者,我们的论坛上线啦~http://sinaurl.cn/h4FWc7 欢迎大家的参与~另外,关于技术相关的问题,可以在论坛上提出,也可以@微博API 这个官方技术支持账号哦~感谢大家对开放平台的支持~[呵呵]",
        "truncated" : false,
        "in_reply_to_status_id" : "",
        "in_reply_to_screen_name" : "",
        "geo" : null,
        "user" : 
        {
            "name" : "微博开放平台",
            "domain" : "openapi",
            "geo_enabled" : true,
            "followers_count" : 13034,
            "statuses_count" : 157,
            "favourites_count" : 0,
            "city" : "8",
            "description" : "新浪微博开放平台市场推广官方账号,如有技术问题,请@微博API或者发私信给微博API",
            "verified" : true,
            "id" : 11051,
            "gender" : "m",
            "friends_count" : 5,
            "screen_name" : "微博开放平台",
            "allow_all_act_msg" : true,
            "following" : false,
            "url" : "http://open.t.sina.com.cn/",
            "profile_image_url" : "http://tp4.sinaimg.cn/11051/50/1280283165/1",
            "created_at" : "Wed Jan 20 00:00:00 +0800 2010",
            "province" : "11",
            "location" : "北京 海淀区"
        },
        "favorited" : false,
        "in_reply_to_user_id" : "",
        "id" : 3958728723,
        "source" : "<a href=\"http://t.sina.com.cn\" rel=\"nofollow\">新浪微博</a>"
    },
...
]

其他

文档更新时间: 2010-12-08