User/friends/update remark/en

跳转到: 导航, 搜索

目录

user/friends/update_remark

Update friend remark of authenticating user

URL

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

Supported Formats

XML/JSON

HTTP Request Method

POST

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)
user_id true int64 User ID
remark true string Remark. Encoded by URL Encode。

Notes

  • It returns 400 error if the friend is not followed by authenticating user.

Example Request

XML
curl -u "username:password" -d "user_id=12345&remark=张三" "http://api.t.sina.com.cn/user/friends/update_remark.xml?source=appkey"
JSON
curl -u "username:password" -d "user_id=12345&remark=张三" "http://api.t.sina.com.cn/user/friends/update_remark.json?source=appkey"

Response

XML Example

<?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 Example

{
    "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" : "北京 宣武区"
}

Others

None