Account/update privacy

跳转到: 导航, 搜索
 
第17行: 第17行:
 
<pre>
 
<pre>
 
<?xml version="1.0" encoding="UTF-8"?>
 
<?xml version="1.0" encoding="UTF-8"?>
<user>
+
<result>true</result>  
  <id>1854740027</id>
+
  <screen_name>siegetest</screen_name>
+
  <name>siegetest</name>
+
  <province>11</province>
+
  <city>8</city>
+
  <location>北京 海淀区</location>
+
  <description>ABCDE</description>
+
  <url/>
+
  <profile_image_url>http://tp4.sinaimg.cn/1854740027/50/0/1</profile_image_url>
+
  <domain/>
+
  <gender>m</gender>
+
  <followers_count>3</followers_count>
+
  <friends_count>20</friends_count>
+
  <statuses_count>15</statuses_count>
+
  <favourites_count>0</favourites_count>
+
  <created_at>Thu Nov 11 00:00:00 +0800 2010</created_at>
+
  <following>false</following>
+
  <verified>false</verified>
+
  <allow_all_act_msg>false</allow_all_act_msg>
+
  <geo_enabled>true</geo_enabled>
+
  <status>
+
    <created_at>Wed Nov 24 18:16:19 +0800 2010</created_at>
+
    <id>3854498847</id>
+
    <text>abcwerw</text>
+
    <source>
+
      <a href="">微博开放平台接口</a>
+
    </source>
+
    <favorited>false</favorited>
+
    <truncated>false</truncated>
+
    <geo/>
+
    <in_reply_to_status_id/>
+
    <in_reply_to_user_id/>
+
    <in_reply_to_screen_name/>
+
  </status>
+
</user>
+
 
</pre>
 
</pre>
 
===JSON示例===
 
===JSON示例===
 
<pre>
 
<pre>
 
{
 
{
     "name" : "siegetest",
+
     "result" : "true",
    "domain" : "",
+
    "geo_enabled" : true,
+
    "followers_count" : 3,
+
    "statuses_count" : 15,
+
    "favourites_count" : 0,
+
    "city" : "8",
+
    "description" : "ABCDE",
+
    "verified" : false,
+
    "status" :
+
    {
+
        "created_at" : "Wed Nov 24 18:16:19 +0800 2010",
+
        "text" : "abcwerw",
+
        "truncated" : false,
+
        "in_reply_to_status_id" : "",
+
        "in_reply_to_screen_name" : "",
+
        "geo" : null,
+
        "favorited" : false,
+
        "in_reply_to_user_id" : "",
+
        "id" : 3854498847,
+
        "source" : "<a href=\"\" rel=\"nofollow\">微博开放平台接口</a>"
+
    },
+
    "id" : 1854740027,
+
    "gender" : "m",
+
    "friends_count" : 20,
+
    "screen_name" : "siegetest",
+
    "allow_all_act_msg" : false,
+
    "following" : false,
+
    "url" : "",
+
    "profile_image_url" : "http://tp4.sinaimg.cn/1854740027/50/0/1",
+
    "created_at" : "Thu Nov 11 00:00:00 +0800 2010",
+
    "province" : "11",
+
    "location" : "北京 海淀区"
+
 
}
 
}
 
</pre>|
 
</pre>|

2011年2月11日 (五) 16:02的最后版本

目录

account/update_privacy

设置隐私信息

URL

http://api.t.sina.com.cn/account/update_privacy.(json%7Cxml)

支持格式

XML/JSON

HTTP请求方式

POST

是否需要登录

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

请求数限制

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

请求参数

  必选 类型及范围 说明
source true string 申请应用时分配的AppKey,调用接口时候代表应用的唯一身份。(采用OAuth授权方式不需要此参数)
comment false int 谁可以评论此账号的微薄。0:所有人,1:我关注的人。默认为0。
message false int 谁可以给此账号发私信。0:所有人,1:我关注的人。默认为1。
realname false int 是否允许别人通过真实姓名搜索到我, 0允许,1不允许,默认值1。
geo false int 发布微博,是否允许微博保存并显示所处的地理位置信息。 0允许,1不允许,默认值0。
badge false int 勋章展现状态,值—1私密状态,0公开状态,默认值0。

注意事项

返回结果

XML示例

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

JSON示例

{
    "result" : "true",
}

其他

文档更新时间: 2011-02-11