Blocks/blocking

跳转到: 导航, 搜索
(blocks/blocking)
 
(未显示2个用户的6个中间版本)
第1行: 第1行:
== blocks/blocking ==
+
{{api_desc2|
分页黑名单用户(输出用户详细信息)
+
uri=blocks/blocking|
 
+
desc=分页输出当前登录用户的黑名单列表,包括黑名单内的用户详细信息。|
=== URL: ===
+
format=XML/JSON|
http://api.t.sina.com.cn/blocks/blocking.format
+
httpMethod=GET|
+
needAuth=true|
===格式:===
+
rateLimit=true|
xml, json
+
params={{api_args|page|false|int|页码。}}
+
{{api_args|count|false|int|单页记录数。}}|
=== 请求方式: ===
+
getParam=&count=5&page=1|
GET
+
postParam=|
+
result=
===是否需要登录:===
+
===XML示例===
true
+
<pre>
 
+
<?xml version="1.0" encoding="UTF-8"?>
===请求数限制:===
+
<users>
true
+
<user>
===请求参数:===
+
  <id>1266321801</id>
* page. 页码,可选。.
+
  <screen_name>姚晨</screen_name>
o Example: http://api.t.sina.com.cn/blocks/blocking.xml?page=1  
+
  <name>姚晨</name>
* count. 一页大小,可选。.
+
  <province>11</province>
o Example: http://api.t.sina.com.cn/blocks/blocking.xml?count=10
+
  <city>5</city>
===返回结果: ===
+
  <location>北京 朝阳区</location>
XML
+
  <description>一颗很逊的卤蛋。</description>
<users>
+
  <url>http://blog.sina.com.cn/yaochen</url>
  <user>
+
  <profile_image_url>http://tp2.sinaimg.cn/1266321801/50/1283203855</profile_image_url>
    <id>1266321801</id>
+
  <domain>yaochen</domain>
    <screen_name>姚晨</screen_name>
+
  <gender>f</gender>
    <name>姚晨</name>
+
  <followers_count>3285458</followers_count>
    <province>11</province>
+
  <friends_count>620</friends_count>
    <city>5</city>
+
  <statuses_count>2361</statuses_count>
    <location>北京 朝阳区</location>
+
  <favourites_count>14</favourites_count>
    <description>一颗很逊的卤蛋。</description>
+
  <created_at>Fri Aug 28 00:00:00 +0800 2009</created_at>
    <url>http://blog.sina.com.cn/yaochen</url>
+
  <following>false</following>
    <profile_image_url>http://tp2.sinaimg.cn/1266321801/50/1283203855</profile_image_url>
+
  <verified>true</verified>
    <domain>yaochen</domain>
+
  <allow_all_act_msg>false</allow_all_act_msg>
    <gender>f</gender>
+
  <geo_enabled>true</geo_enabled>
    <followers_count>3285458</followers_count>
+
  <status>
    <friends_count>620</friends_count>
+
    <created_at>Mon Oct 18 11:44:53 +0800 2010</created_at>
    <statuses_count>2361</statuses_count>
+
    <id>3141808011</id>
    <favourites_count>14</favourites_count>
+
    <text>冕冕,加油!</text>
    <created_at>Fri Aug 28 00:00:00 +0800 2009</created_at>
+
    <source>
    <following>false</following>
+
      <a href="http://news.sina.com.cn/wap/wbclient.html#3">iPhone客户端</a>
    <verified>true</verified>
+
    </source>
    <allow_all_act_msg>false</allow_all_act_msg>
+
    <favorited>false</favorited>
    <geo_enabled>true</geo_enabled>
+
    <truncated>false</truncated>
    <status>
+
    <geo/>
      <created_at>Mon Oct 18 11:44:53 +0800 2010</created_at>
+
    <in_reply_to_status_id/>
      <id>3141808011</id>
+
    <in_reply_to_user_id/>
      <text>冕冕,加油!</text>
+
    <in_reply_to_screen_name/>
      <source>
+
    <retweeted_status>
        <a href="http://news.sina.com.cn/wap/wbclient.html#3">iPhone客户端</a>
+
      <created_at>Mon Oct 18 10:06:57 +0800 2010</created_at>
      </source>
+
      <id>3140482259</id>
      <favorited>false</favorited>
+
      <text>刚跑完100米圣途,蓮花山清幽的山徑,闊葉榕很高兴,我也很高兴。出山门了,这是我的"潮流"!答应妈妈了,要送给她!</text>
      <truncated>false</truncated>
+
      <source>
      <geo/>
+
        <a href="http://news.sina.com.cn/wap/wbclient.html#3">iPhone客户端</a>
      <in_reply_to_status_id/>
+
      </source>
      <in_reply_to_user_id/>
+
      <favorited>false</favorited>
      <in_reply_to_screen_name/>
+
      <truncated>false</truncated>
      <retweeted_status>
+
      <geo/>
        <created_at>Mon Oct 18 10:06:57 +0800 2010</created_at>
+
      <in_reply_to_status_id/>
        <id>3140482259</id>
+
      <in_reply_to_user_id/>
        <text>刚跑完100米圣途,蓮花山清幽的山徑,闊葉榕很高兴,我也很高兴。出山门了,这是我的"潮流"!答应妈妈了,要送给她!</text>
+
      <in_reply_to_screen_name/>
        <source>
+
      <thumbnail_pic>http://ss3.sinaimg.cn/thumbnail/3f1622c9492daa18d5612&690</thumbnail_pic>
          <a href="http://news.sina.com.cn/wap/wbclient.html#3">iPhone客户端</a>
+
      <bmiddle_pic>http://ss3.sinaimg.cn/bmiddle/3f1622c9492daa18d5612&690</bmiddle_pic>
        </source>
+
      <original_pic>http://ss3.sinaimg.cn/orignal/3f1622c9492daa18d5612&690</original_pic>
        <favorited>false</favorited>
+
      <user>
        <truncated>false</truncated>
+
        <id>1058415305</id>
        <geo/>
+
        <screen_name>行者孙冕</screen_name>
        <in_reply_to_status_id/>
+
        <name>行者孙冕</name>
        <in_reply_to_user_id/>
+
        <province>44</province>
        <in_reply_to_screen_name/>
+
        <city>1</city>
        <thumbnail_pic>http://ss3.sinaimg.cn/thumbnail/3f1622c9492daa18d5612&amp;690</thumbnail_pic>
+
        <location>广东 广州</location>
        <bmiddle_pic>http://ss3.sinaimg.cn/bmiddle/3f1622c9492daa18d5612&amp;690</bmiddle_pic>
+
        <description/>
        <original_pic>http://ss3.sinaimg.cn/orignal/3f1622c9492daa18d5612&amp;690</original_pic>
+
        <url>http://blog.sina.com.cn/sunmian</url>
        <user>
+
        <profile_image_url>http://tp2.sinaimg.cn/1058415305/50/1279874506</profile_image_url>
          <id>1058415305</id>
+
        <domain>sunmian</domain>
          <screen_name>行者孙冕</screen_name>
+
        <gender>m</gender>
          <name>行者孙冕</name>
+
        <followers_count>64184</followers_count>
          <province>44</province>
+
        <friends_count>409</friends_count>
          <city>1</city>
+
        <statuses_count>2269</statuses_count>
          <location>广东 广州</location>
+
        <favourites_count>32</favourites_count>
          <description/>
+
        <created_at>Fri Aug 28 00:00:00 +0800 2009</created_at>
          <url>http://blog.sina.com.cn/sunmian</url>
+
        <following>false</following>
          <profile_image_url>http://tp2.sinaimg.cn/1058415305/50/1279874506</profile_image_url>
+
        <verified>true</verified>
          <domain>sunmian</domain>
+
        <allow_all_act_msg>false</allow_all_act_msg>
          <gender>m</gender>
+
        <geo_enabled>true</geo_enabled>
          <followers_count>64184</followers_count>
+
      </user>
          <friends_count>409</friends_count>
+
    </retweeted_status>
          <statuses_count>2269</statuses_count>
+
  </status>
          <favourites_count>32</favourites_count>
+
</user>
          <created_at>Fri Aug 28 00:00:00 +0800 2009</created_at>
+
.......
          <following>false</following>
+
</users>
          <verified>true</verified>
+
</pre>
          <allow_all_act_msg>false</allow_all_act_msg>
+
===JSON示例===
          <geo_enabled>true</geo_enabled>
+
<pre>
        </user>
+
[
      </retweeted_status>
+
    </status>
+
  </user>
+
  .......
+
</users>
+
 
+
JSON:
+
  [
+
 
     {
 
     {
 
+
"allow_all_act_msg": false,  
  "allow_all_act_msg": false,  
+
"city": "5",  
  "city": "5",  
+
"created_at": "Fri Aug 28 00:00:00 +0800 2009",  
  "created_at": "Fri Aug 28 00:00:00 +0800 2009",  
+
"description": "一颗很逊的卤蛋。",  
  "description": "一颗很逊的卤蛋。",  
+
"domain": "yaochen",  
  "domain": "yaochen",  
+
"favourites_count": 14,  
  "favourites_count": 14,  
+
"followers_count": 3284142,  
  "followers_count": 3284142,  
+
"following": false,  
  "following": false,  
+
"friends_count": 620,  
  "friends_count": 620,  
+
"gender": "f",  
  "gender": "f",  
+
"geo_enabled": true,  
  "geo_enabled": true,  
+
"id": 1266321801,  
  "id": 1266321801,  
+
"location": "北京 朝阳区",  
  "location": "北京 朝阳区",  
+
"name": "姚晨",  
  "name": "姚晨",  
+
"profile_image_url": "http://tp2.sinaimg.cn/1266321801/50/1283203855",  
  "profile_image_url": "http://tp2.sinaimg.cn/1266321801/50/1283203855",  
+
"province": "11",  
  "province": "11",  
+
"screen_name": "姚晨",  
  "screen_name": "姚晨",  
+
"status": {
  "status": {
+
    "created_at": "Mon Oct 18 11:44:53 +0800 2010",  
      "created_at": "Mon Oct 18 11:44:53 +0800 2010",  
+
    "favorited": false,  
      "favorited": false,  
+
    "geo": null,  
      "geo": null,  
+
    "id": 3141808011,  
      "id": 3141808011,  
+
    "in_reply_to_screen_name": "",  
      "in_reply_to_screen_name": "",  
+
    "in_reply_to_status_id": "",  
      "in_reply_to_status_id": "",  
+
    "in_reply_to_user_id": "",  
      "in_reply_to_user_id": "",  
+
    "retweeted_status": {
      "retweeted_status": {
+
"bmiddle_pic": "http://ss3.sinaimg.cn/bmiddle/3f1622c9492daa18d5612&690",  
          "bmiddle_pic": "http://ss3.sinaimg.cn/bmiddle/3f1622c9492daa18d5612&690",  
+
"created_at": "Mon Oct 18 10:06:57 +0800 2010",  
          "created_at": "Mon Oct 18 10:06:57 +0800 2010",  
+
"favorited": false,  
          "favorited": false,  
+
"geo": null,  
          "geo": null,  
+
"id": 3140482259,  
          "id": 3140482259,  
+
"in_reply_to_screen_name": "",  
          "in_reply_to_screen_name": "",  
+
"in_reply_to_status_id": "",  
          "in_reply_to_status_id": "",  
+
"in_reply_to_user_id": "",  
          "in_reply_to_user_id": "",  
+
"original_pic": "http://ss3.sinaimg.cn/orignal/3f1622c9492daa18d5612&690",  
          "original_pic": "http://ss3.sinaimg.cn/orignal/3f1622c9492daa18d5612&690",  
+
"source": "<a href=\"http://news.sina.com.cn/wap/wbclient.html#3\" rel=\"nofollow\">iPhone客户端</a>",  
          "source": "<a href=\"http://news.sina.com.cn/wap/wbclient.html#3\" rel=\"nofollow\">iPhone客户端</a>",  
+
"text": "刚跑完100米圣途,蓮花山清幽的山徑,闊葉榕很高兴,我也很高兴。出山门了,这是我的"潮流"!答应妈妈了,要送给她!",  
          "text": "刚跑完100米圣途,蓮花山清幽的山徑,闊葉榕很高兴,我也很高兴。出山门了,这是我的"潮流"!答应妈妈了,要送给她!",  
+
"thumbnail_pic": "http://ss3.sinaimg.cn/thumbnail/3f1622c9492daa18d5612&690",  
          "thumbnail_pic": "http://ss3.sinaimg.cn/thumbnail/3f1622c9492daa18d5612&690",  
+
"truncated": false,  
          "truncated": false,  
+
"user": {
          "user": {
+
    "allow_all_act_msg": false,  
              "allow_all_act_msg": false,  
+
    "city": "1",  
              "city": "1",  
+
    "created_at": "Fri Aug 28 00:00:00 +0800 2009",  
              "created_at": "Fri Aug 28 00:00:00 +0800 2009",  
+
    "description": "",  
              "description": "",  
+
    "domain": "sunmian",  
              "domain": "sunmian",  
+
    "favourites_count": 32,  
              "favourites_count": 32,  
+
    "followers_count": 64184,  
              "followers_count": 64184,  
+
    "following": false,  
              "following": false,  
+
    "friends_count": 409,  
              "friends_count": 409,  
+
    "gender": "m",  
              "gender": "m",  
+
    "geo_enabled": true,  
              "geo_enabled": true,  
+
    "id": 1058415305,  
              "id": 1058415305,  
+
    "location": "广东 广州",  
              "location": "广东 广州",  
+
    "name": "行者孙冕",  
              "name": "行者孙冕",  
+
    "profile_image_url": "http://tp2.sinaimg.cn/1058415305/50/1279874506",  
              "profile_image_url": "http://tp2.sinaimg.cn/1058415305/50/1279874506",  
+
    "province": "44",  
              "province": "44",  
+
    "screen_name": "行者孙冕",  
              "screen_name": "行者孙冕",  
+
    "statuses_count": 2269,  
              "statuses_count": 2269,  
+
    "url": "http://blog.sina.com.cn/sunmian",  
              "url": "http://blog.sina.com.cn/sunmian",  
+
    "verified": true
              "verified": true
+
}
          }
+
    },  
      },  
+
    "source": "<a href=\"http://news.sina.com.cn/wap/wbclient.html#3\" rel=\"nofollow\">iPhone\u5ba2\u6237\u7aef</a>",  
      "source": "<a href=\"http://news.sina.com.cn/wap/wbclient.html#3\" rel=\"nofollow\">iPhone\u5ba2\u6237\u7aef</a>",  
+
    "text": "冕冕,加油!",  
      "text": "冕冕,加油!",  
+
    "truncated": false
      "truncated": false
+
},  
  },  
+
"statuses_count": 2361,  
  "statuses_count": 2361,  
+
"url": "http://blog.sina.com.cn/yaochen",  
  "url": "http://blog.sina.com.cn/yaochen",  
+
"verified": true
  "verified": true
+
    },
 
+
}
+
 
......
 
......
  ]
+
]
===使用示例: ===
+
</pre>|
curl  http://api.t.sina.com.cn/blocks/blocking.json
+
useAge=无|
 +
otherInfo=
 +
}}

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

目录

blocks/blocking

分页输出当前登录用户的黑名单列表,包括黑名单内的用户详细信息。

URL

http://api.t.sina.com.cn/blocks/blocking.(json%7Cxml)

支持格式

XML/JSON

HTTP请求方式

GET

是否需要登录

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

请求数限制

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

请求参数

  必选 类型及范围 说明
source true string 申请应用时分配的AppKey,调用接口时候代表应用的唯一身份。(采用OAuth授权方式不需要此参数)
page false int 页码。
count false int 单页记录数。

注意事项

返回结果

XML示例

<?xml version="1.0" encoding="UTF-8"?>
<users>
 <user>
   <id>1266321801</id>
   <screen_name>姚晨</screen_name>
   <name>姚晨</name>
   <province>11</province>
   <city>5</city>
   <location>北京 朝阳区</location>
   <description>一颗很逊的卤蛋。</description>
   <url>http://blog.sina.com.cn/yaochen</url>
   <profile_image_url>http://tp2.sinaimg.cn/1266321801/50/1283203855</profile_image_url>
   <domain>yaochen</domain>
   <gender>f</gender>
   <followers_count>3285458</followers_count>
   <friends_count>620</friends_count>
   <statuses_count>2361</statuses_count>
   <favourites_count>14</favourites_count>
   <created_at>Fri Aug 28 00:00:00 +0800 2009</created_at>
   <following>false</following>
   <verified>true</verified>
   <allow_all_act_msg>false</allow_all_act_msg>
   <geo_enabled>true</geo_enabled>
   <status>
     <created_at>Mon Oct 18 11:44:53 +0800 2010</created_at>
     <id>3141808011</id>
     <text>冕冕,加油!</text>
     <source>
       <a href="http://news.sina.com.cn/wap/wbclient.html#3">iPhone客户端</a>
     </source>
     <favorited>false</favorited>
     <truncated>false</truncated>
     <geo/>
     <in_reply_to_status_id/>
     <in_reply_to_user_id/>
     <in_reply_to_screen_name/>
     <retweeted_status>
       <created_at>Mon Oct 18 10:06:57 +0800 2010</created_at>
       <id>3140482259</id>
       <text>刚跑完100米圣途,蓮花山清幽的山徑,闊葉榕很高兴,我也很高兴。出山门了,这是我的"潮流"!答应妈妈了,要送给她!</text>
       <source>
         <a href="http://news.sina.com.cn/wap/wbclient.html#3">iPhone客户端</a>
       </source>
       <favorited>false</favorited>
       <truncated>false</truncated>
       <geo/>
       <in_reply_to_status_id/>
       <in_reply_to_user_id/>
       <in_reply_to_screen_name/>
       <thumbnail_pic>http://ss3.sinaimg.cn/thumbnail/3f1622c9492daa18d5612&690</thumbnail_pic>
       <bmiddle_pic>http://ss3.sinaimg.cn/bmiddle/3f1622c9492daa18d5612&690</bmiddle_pic>
       <original_pic>http://ss3.sinaimg.cn/orignal/3f1622c9492daa18d5612&690</original_pic>
       <user>
         <id>1058415305</id>
         <screen_name>行者孙冕</screen_name>
         <name>行者孙冕</name>
         <province>44</province>
         <city>1</city>
         <location>广东 广州</location>
         <description/>
         <url>http://blog.sina.com.cn/sunmian</url>
         <profile_image_url>http://tp2.sinaimg.cn/1058415305/50/1279874506</profile_image_url>
         <domain>sunmian</domain>
         <gender>m</gender>
         <followers_count>64184</followers_count>
         <friends_count>409</friends_count>
         <statuses_count>2269</statuses_count>
         <favourites_count>32</favourites_count>
         <created_at>Fri Aug 28 00:00:00 +0800 2009</created_at>
         <following>false</following>
         <verified>true</verified>
         <allow_all_act_msg>false</allow_all_act_msg>
         <geo_enabled>true</geo_enabled>
       </user>
     </retweeted_status>
   </status>
 </user>
 .......
</users>

JSON示例

[
    {
	 "allow_all_act_msg": false, 
	 "city": "5", 
	 "created_at": "Fri Aug 28 00:00:00 +0800 2009", 
	 "description": "一颗很逊的卤蛋。", 
	 "domain": "yaochen", 
	 "favourites_count": 14, 
	 "followers_count": 3284142, 
	 "following": false, 
	 "friends_count": 620, 
	 "gender": "f", 
	 "geo_enabled": true, 
	 "id": 1266321801, 
	 "location": "北京 朝阳区", 
	 "name": "姚晨", 
	 "profile_image_url": "http://tp2.sinaimg.cn/1266321801/50/1283203855", 
	 "province": "11", 
	 "screen_name": "姚晨", 
	 "status": {
	     "created_at": "Mon Oct 18 11:44:53 +0800 2010", 
	     "favorited": false, 
	     "geo": null, 
	     "id": 3141808011, 
	     "in_reply_to_screen_name": "", 
	     "in_reply_to_status_id": "", 
	     "in_reply_to_user_id": "", 
	     "retweeted_status": {
		 "bmiddle_pic": "http://ss3.sinaimg.cn/bmiddle/3f1622c9492daa18d5612&690", 
		 "created_at": "Mon Oct 18 10:06:57 +0800 2010", 
		 "favorited": false, 
		 "geo": null, 
		 "id": 3140482259, 
		 "in_reply_to_screen_name": "", 
		 "in_reply_to_status_id": "", 
		 "in_reply_to_user_id": "", 
		 "original_pic": "http://ss3.sinaimg.cn/orignal/3f1622c9492daa18d5612&690", 
		 "source": "<a href=\"http://news.sina.com.cn/wap/wbclient.html#3\" rel=\"nofollow\">iPhone客户端</a>", 
		 "text": "刚跑完100米圣途,蓮花山清幽的山徑,闊葉榕很高兴,我也很高兴。出山门了,这是我的"潮流"!答应妈妈了,要送给她!", 
		 "thumbnail_pic": "http://ss3.sinaimg.cn/thumbnail/3f1622c9492daa18d5612&690", 
		 "truncated": false, 
		 "user": {
		     "allow_all_act_msg": false, 
		     "city": "1", 
		     "created_at": "Fri Aug 28 00:00:00 +0800 2009", 
		     "description": "", 
		     "domain": "sunmian", 
		     "favourites_count": 32, 
		     "followers_count": 64184, 
		     "following": false, 
		     "friends_count": 409, 
		     "gender": "m", 
		     "geo_enabled": true, 
		     "id": 1058415305, 
		     "location": "广东 广州", 
		     "name": "行者孙冕", 
		     "profile_image_url": "http://tp2.sinaimg.cn/1058415305/50/1279874506", 
		     "province": "44", 
		     "screen_name": "行者孙冕", 
		     "statuses_count": 2269, 
		     "url": "http://blog.sina.com.cn/sunmian", 
		     "verified": true
		 }
	     }, 
	     "source": "<a href=\"http://news.sina.com.cn/wap/wbclient.html#3\" rel=\"nofollow\">iPhone\u5ba2\u6237\u7aef</a>", 
	     "text": "冕冕,加油!", 
	     "truncated": false
	 }, 
	 "statuses_count": 2361, 
	 "url": "http://blog.sina.com.cn/yaochen", 
	 "verified": true
    },
......
]

其他

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