User/friends/update remark

跳转到: 导航, 搜索

目录

user/friends/update_remark

更新当前登录用户所关注的某个好友的备注信息。

URL

http://api.t.sina.com.cn/user/friends/update_remark.(json%7Cxml)

支持格式

XML/JSON

HTTP请求方式

POST

是否需要登录

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

请求数限制

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

请求参数

  必选 类型及范围 说明
source true string 申请应用时分配的AppKey,调用接口时候代表应用的唯一身份。(采用OAuth授权方式不需要此参数)
user_id true int64 需要修改备注信息的用户ID。
remark true string 备注信息。需要URL Encode。

注意事项

  • 只能修改当前登录用户所关注的用户的备注信息。否则将给出400错误。

返回结果

XML示例

<?xml version="1.0" encoding="UTF-8"?>
<user>
  <id>1557891054</id>
  <screen_name>凌玲</screen_name>
  <name>凌玲</name>
  <province>11</province>
  <city>4</city>
  <location>北京 宣武区</location>
  <description>漂亮的小猫猫!</description>
  <url>http://1</url>
  <profile_image_url>http://tp3.sinaimg.cn/1557891054/50/1279879819/0</profile_image_url>
  <domain>ling2</domain>
  <gender>f</gender>
  <followers_count>12586</followers_count>
  <friends_count>1999</friends_count>
  <statuses_count>1884</statuses_count>
  <favourites_count>2</favourites_count>
  <created_at>Tue Oct 13 00:00:00 +0800 2009</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>Fri Dec 17 15:49:33 +0800 2010</created_at>
    <id>4518562605</id>
    <text>圣诞快乐~@周飞雨@陈友@于小醇,求女表~</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/>
    <retweeted_status>
      <created_at>Fri Dec 17 15:33:42 +0800 2010</created_at>
      <id>4518237653</id>
      <text>快乐圣诞分享祝福#顶级名表飞亚达千万巨献#第一团:钟表界最具中华文化内涵人文艺术珍品【飞亚达金佛表】专柜价39800,超值团购【28999元】限量50,送@佐卡伊钻石 5000元现金券,登陆http://sinaurl.cn/hbTJfl 关注+转发@三位好友+祝福语,就有机会赢取一款价值1980元经典女表,另25份幸运奖@统计评论</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/>
      <thumbnail_pic>http://ww4.sinaimg.cn/thumbnail/70e025f3gw6dcfndzxksdj.jpg</thumbnail_pic>
      <bmiddle_pic>http://ww4.sinaimg.cn/bmiddle/70e025f3gw6dcfndzxksdj.jpg</bmiddle_pic>
      <original_pic>http://ww4.sinaimg.cn/large/70e025f3gw6dcfndzxksdj.jpg</original_pic>
      <user>
        <id>1893737971</id>
        <screen_name>飞亚达FIYTA旗舰店</screen_name>
        <name>飞亚达FIYTA旗舰店</name>
        <province>44</province>
        <city>3</city>
        <location>广东 深圳</location>
        <description>世界三大航天表之一飞亚达。顶级设计、顶级工艺、顶级材料。2010全球工业设计奥斯卡——德国红点设计大奖得主。</description>
        <url>http://fiyta.tmall.com/</url>
        <profile_image_url>http://tp4.sinaimg.cn/1893737971/50/1292561782/1</profile_image_url>
        <domain>fiytachina</domain>
        <gender>m</gender>
        <followers_count>8</followers_count>
        <friends_count>17</friends_count>
        <statuses_count>13</statuses_count>
        <favourites_count>0</favourites_count>
        <created_at>Wed Dec 15 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>
      </user>
      <annotations/>
    </retweeted_status>
    <annotations/>
  </status>
</user>

JSON示例

{
    "name" : "凌玲",
    "domain" : "ling2",
    "geo_enabled" : true,
    "followers_count" : 12586,
    "statuses_count" : 1884,
    "favourites_count" : 2,
    "city" : "4",
    "description" : "漂亮的小猫猫!",
    "verified" : false,
    "status" : 
    {
        "created_at" : "Fri Dec 17 15:49:33 +0800 2010",
        "text" : "圣诞快乐~@周飞雨@陈友@于小醇,求女表~",
        "truncated" : false,
        "retweeted_status" : 
        {
            "created_at" : "Fri Dec 17 15:33:42 +0800 2010",
            "text" : "快乐圣诞分享祝福#顶级名表飞亚达千万巨献#第一团:钟表界最具中华文化内涵人文艺术珍品【飞亚达金佛表】专柜价39800,超值团购【28999元】限量50,送@佐卡伊钻石 5000元现金券,登陆http://sinaurl.cn/hbTJfl 关注+转发@三位好友+祝福语,就有机会赢取一款价值1980元经典女表,另25份幸运奖@统计评论",
            "bmiddle_pic" : "http://ww4.sinaimg.cn/bmiddle/70e025f3gw6dcfndzxksdj.jpg",
            "original_pic" : "http://ww4.sinaimg.cn/large/70e025f3gw6dcfndzxksdj.jpg",
            "truncated" : false,
            "in_reply_to_status_id" : "",
            "annotations" : 
            [

            ],
            "in_reply_to_screen_name" : "",
            "geo" : null,
            "user" : 
            {
                "name" : "飞亚达FIYTA旗舰店",
                "domain" : "fiytachina",
                "geo_enabled" : true,
                "followers_count" : 8,
                "statuses_count" : 13,
                "favourites_count" : 0,
                "city" : "3",
                "description" : "世界三大航天表之一飞亚达。顶级设计、顶级工艺、顶级材料。2010全球工业设计奥斯卡——德国红点设计大奖得主。",
                "verified" : false,
                "id" : 1893737971,
                "gender" : "m",
                "friends_count" : 17,
                "screen_name" : "飞亚达FIYTA旗舰店",
                "allow_all_act_msg" : false,
                "following" : false,
                "url" : "http://fiyta.tmall.com/",
                "profile_image_url" : "http://tp4.sinaimg.cn/1893737971/50/1292561782/1",
                "created_at" : "Wed Dec 15 00:00:00 +0800 2010",
                "province" : "44",
                "location" : "广东 深圳"
            },
            "favorited" : false,
            "thumbnail_pic" : "http://ww4.sinaimg.cn/thumbnail/70e025f3gw6dcfndzxksdj.jpg",
            "in_reply_to_user_id" : "",
            "id" : 4518237653,
            "source" : "<a href=\"http://t.sina.com.cn\" rel=\"nofollow\">新浪微博</a>"
        },
        "in_reply_to_status_id" : "",
        "annotations" : 
        [

        ],
        "in_reply_to_screen_name" : "",
        "geo" : null,
        "favorited" : false,
        "in_reply_to_user_id" : "",
        "id" : 4518562605,
        "source" : "<a href=\"http://t.sina.com.cn\" rel=\"nofollow\">新浪微博</a>"
    },
    "id" : 1557891054,
    "gender" : "f",
    "friends_count" : 1999,
    "screen_name" : "凌玲",
    "allow_all_act_msg" : false,
    "following" : false,
    "url" : "http://1",
    "profile_image_url" : "http://tp3.sinaimg.cn/1557891054/50/1279879819/0",
    "created_at" : "Tue Oct 13 00:00:00 +0800 2009",
    "province" : "11",
    "location" : "北京 宣武区"
}

其他

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