订阅用户(users/friendship/create)

  1. 接口

    URL https://openapi.youku.com/v2/users/friendship/create.json
    HTTP方法 POST
    返回格式 json
    授权/登录 true
  2. 参数

    参数 类型 必选 默认值 说明 示例
    client_id string true   应用Key  
    access_token string true   OAuth2授权
    获取access_token接口
    手动获取access_token
     
    user_id int false   关注用户ID  
    user_name int false   关注用户名  
  3. 返回结果

    3.1 字段说明

    user 我的信息

    参数 类型 允许为空 说明 示例
    id int false   用户ID
    name string false   用户名
    link string false   用户地址
    avatar string false   头像
    avatar_large string false   大头像
    gender string true   性别 男:m 女:f 未知:u
    description string true   描述
    videos_count int false   总视频数
    playlists_count int false   总专辑数
    favorites_count int false   总收藏视频数
    followers_count int false   粉丝数
    following_count int false   关注数
    statuses_count int false   动态数
    regist_time string false   注册时间


3.2 JSON


{
   "total" : 2,
   "page" : 1,
   "count" : 20,
   "users" :
   [
   {
           "id" : 2071704,
           "name" : "panzhiqi",
           "link" : "http://i.youku.com/u/id_UODI4NjgxNg==.html",
           "avatar" : "http://static.youku.com/v0.5.0100/user/img/head/64/101.jpg",
           "avatar_large" : "http://static.youku.com/v0.5.0100/user/img/head/150/101.jpg",
           "gender" : "m",
           "description" : "我是一枚程序男",
           "videos_count" : 5,
           "playlists_count" : 2,
           "favorites_count" : 10,
           "followers_count" : 0,
           "followings_count" : 0,
           "statuses_count" : 0,
           "regist_time" : "2007-01-01 00:00:00"
   },
   ]
 }