接口
URL https://openapi.youku.com/v2/users/friendship/create.json HTTP方法 POST 返回格式 json 授权/登录 true
参数
参数 类型 必选 默认值 说明 示例 client_id string true 应用Key access_token string true OAuth2授权 获取access_token接口 手动获取access_token user_id int false 关注用户ID user_name int false 关注用户名
3.1 字段说明 user 我的信息
3.1 字段说明
user 我的信息
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" }, ] }
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" }, ] }
为了得到我们往回走哪最好的体验效果,我们建议您升级到最新版本的Internet Explor 或选择另一个Web浏览器,如下图:
订阅用户(users/friendship/create)
接口
参数