Skip to content

account.update profile.rest

lisztli edited this page Apr 26, 2012 · 3 revisions

#PUT /account/profile

通过更新用户个人资料

##路径

http://rest.fanfou.com/account/profile

##调用方法

PUT

##条件限制

需要登陆

##参数:

    |作用       |格式       |字段说明

--------|-----------|-----------|------------ url |指定自定义网址|url=URL |可选 location|指定所在地位置|字符串 |可选 description |指定自述 |字符串 |可选 name |指定姓名 |字符串 |可选 email |指定电子邮件 |字符串 |可选

##返回值:

返回用户信息

  • 使用方法
curl -X PUT "rest.fanfou.com/account/profile?oauth_token=$oauth_token" -d"description=my_desc&location=Peking&website=nimei.org" | python -mjson.tool
  • 返回值
{
    "created_at": "Sat May 12 15:58:58 +0000 2007", 
    "description": "my_desc", 
    "favourites_count": 70, 
    "followed": false, 
    "followers_count": 622, 
    "following": false, 
    "friends_count": 155, 
    "id": 113412, 
    "location": "Peking", 
    "profile_image_url": "http://avatar.lcff.com/s0/00/3e/r4.jpg?1334140470", 
    "profile_image_url_large": "http://avatar.lcff.com/l0/00/3e/r4.jpg?1334140470", 
    "protected": false, 
    "screen_name": "\u7a46\u8363\u5747\u5747\u5747", 
    "statuses_count": 6643, 
    "url": "moon", 
    "website": "http://nimei.org"
}
Clone this wiki locally