Plus (ThinkSNS+)

Plus (ThinkSNS+)

  • 文档 [New]
  • 文档
  • REST API v2
  • 反馈
  • GitHub

›用户

基本

  • 概述
  • 启动信息
  • Json Web Token 授权
  • 验证码
  • 位置
  • 标签
  • 消息通知
  • 钱包(旧版本)
  • Plus Pay(新钱包-支付工具)
  • 支付能力
  • 文件
  • 关于我们
  • 广告
  • 举报
  • 积分
  • 环信
  • 评论
  • 文件存储

用户

  • 用户
  • 注册
  • 收到的评论
  • 收到的喜欢
  • 关注
  • 标签
  • 身份认证
  • 找人
  • 排行榜
  • 反馈
  • 打赏用户
  • 未读消息
  • 签到
  • 消息

动态

  • 发布动态
  • 获取动态
  • 删除动态
  • 设置评论收费
  • 评论
  • 喜欢
  • 收藏
  • 置顶
  • 打赏
  • 排行榜
  • 举报
  • 积分部分新增接口
  • 话题

音乐

  • 音乐
  • 专辑
  • 点赞
  • 评论
  • 收藏

问答

  • 概述
  • 话题
  • 问题
  • 评论
  • 回答
  • 回答 · 打赏
  • 回答 · 围观
  • 用户 · 关注问题
  • 用户 · 喜欢回答
  • 用户 · 收藏回答
  • 用户 · 申请精选
  • 排行榜
  • 举报
  • 问答部分积分相关新增接口

资讯

  • 概述
  • 分类
  • 投稿
  • 获取
  • 评论
  • 喜欢
  • 打赏
  • 置顶
  • 收藏
  • 排行榜
  • 举报
  • 资讯部分积分相关新增接口

圈子

  • 概述
  • 分类
  • 圈子
  • 圈子 · 管理
  • 圈子 · 举报
  • 圈子 · 成员
  • 帖子
  • 帖子 · 评论
  • 帖子 · 喜欢
  • 帖子 · 收藏
  • 帖子 · 打赏
  • 帖子 · 置顶
  • 圈子部分积分相关新增接口
Edit

找人

  • 热门用户
  • 最新用户
  • 推荐用户(按标签及后台推荐)
  • 搜索用户

后台推荐用户

get /user/recommends

输入

每次最多查询200个推荐

Response

Status: 200 OK
[
    {
        "id": 2,
        "name": "wayne",
        "bio": null,
        "sex": 0,
        "location": null,
        "created_at": "2017-08-06 04:46:13",
        "updated_at": "2017-08-07 04:06:56",
        "following": false,
        "follower": false,
        "avatar": "http://192.168.2.104/api/v2/users/2/avatar",
        "bg": null,
        "verified": null,
        "extra": {
            "user_id": 2,
            "likes_count": 0,
            "comments_count": 23,
            "followers_count": 0,
            "followings_count": 0,
            "updated_at": "2017-08-07 09:55:50",
            "feeds_count": 0,
            "questions_count": 1,
            "answers_count": 0
        }
    }
]

热门用户

get /user/populars

输入

名称类型描述
limitinteger每页数量
offsetinteger偏移量, 注: 此参数为之前获取数量的总和

Response

Status: 200 OK
[
    {
        "id": 2,
        "name": "wayne",
        "bio": null,
        "sex": 0,
        "location": null,
        "created_at": "2017-08-06 04:46:13",
        "updated_at": "2017-08-07 04:06:56",
        "following": false,
        "follower": false,
        "avatar": "http://192.168.2.104/api/v2/users/2/avatar",
        "bg": null,
        "verified": null,
        "extra": {
            "user_id": 2,
            "likes_count": 0,
            "comments_count": 23,
            "followers_count": 0,
            "followings_count": 0,
            "updated_at": "2017-08-07 09:55:50",
            "feeds_count": 0,
            "questions_count": 1,
            "answers_count": 0
        }
    }
]

最新用户

get /user/latests

输入

名称类型描述
limitinteger每页数量
offsetinteger偏移量, 注: 此参数为之前获取数量的总和

Response

Status: 200 OK
[
    {
        "id": 2,
        "name": "wayne",
        "bio": null,
        "sex": 0,
        "location": null,
        "created_at": "2017-08-06 04:46:13",
        "updated_at": "2017-08-07 04:06:56",
        "following": false,
        "follower": false,
        "avatar": "http://192.168.2.104/api/v2/users/2/avatar",
        "bg": null,
        "verified": null,
        "extra": {
            "user_id": 2,
            "likes_count": 0,
            "comments_count": 23,
            "followers_count": 0,
            "followings_count": 0,
            "updated_at": "2017-08-07 09:55:50",
            "feeds_count": 0,
            "questions_count": 1,
            "answers_count": 0
        }
    }
]

推荐用户

get /user/find-by-tags

输入

名称类型描述
limitinteger每页数量
offsetinteger偏移量, 注: 此参数为之前获取数量的总和

根据用户标签来推荐用户,未登录则返回空数组

Response

Status: 200 OK
未登录返回数据
[]
登录后返回数据
[
    {
        "id": 2,
        "name": "wayne",
        "bio": null,
        "sex": 0,
        "location": null,
        "created_at": "2017-08-06 04:46:13",
        "updated_at": "2017-08-07 04:06:56",
        "following": false,
        "follower": false,
        "avatar": "http://192.168.2.104/api/v2/users/2/avatar",
        "bg": null,
        "verified": null,
        "extra": {
            "user_id": 2,
            "likes_count": 0,
            "comments_count": 23,
            "followers_count": 0,
            "followings_count": 0,
            "updated_at": "2017-08-07 09:55:50",
            "feeds_count": 0,
            "questions_count": 1,
            "answers_count": 0
        }
    }
]

搜索用户

get /user/search

输入

名称类型描述
limitinteger每页数量
offsetinteger偏移量, 注: 此参数为之前获取数量的总和
keywordstring关键字, 查找分页时也为必填项

Request

http://test-plus.zhibocloud.cn/api/v2/user/search?keyword=用户名

Response

Status: 200 OK
[
    {
        "id": 2,
        "name": "wayne",
        "bio": null,
        "sex": 0,
        "location": null,
        "created_at": "2017-08-06 04:46:13",
        "updated_at": "2017-08-07 04:06:56",
        "following": false,
        "follower": false,
        "avatar": "http://192.168.2.104/api/v2/users/2/avatar",
        "bg": null,
        "verified": null,
        "extra": {
            "user_id": 2,
            "likes_count": 0,
            "comments_count": 23,
            "followers_count": 0,
            "followings_count": 0,
            "updated_at": "2017-08-07 09:55:50",
            "feeds_count": 0,
            "questions_count": 1,
            "answers_count": 0
        }
    }
]

搜索用户

post /user/find-by-phone

输入

  • 单次请求手机数量不超过100条

Request

{ "phones": [ 18877778888, 18999998888, 17700001111 ] }

Response

Status: 200 OK
[
    {
        "id": 2,
        "name": "wayne",
        "bio": null,
        "sex": 0,
        "location": null,
        "created_at": "2017-08-06 04:46:13",
        "updated_at": "2017-08-07 04:06:56",
        "mobi": "18908019700",
        "following": false,
        "follower": false,
        "avatar": "http://192.168.2.104/api/v2/users/2/avatar",
        "bg": null,
        "verified": null,
        "extra": {
            "user_id": 2,
            "likes_count": 0,
            "comments_count": 23,
            "followers_count": 0,
            "followings_count": 0,
            "updated_at": "2017-08-07 09:55:50",
            "feeds_count": 0,
            "questions_count": 1,
            "answers_count": 0
        }
    }
]
  • 返回体中 手机号码字段为 [mobi]
← 身份认证排行榜 →
  • 后台推荐用户
  • 输入
  • 热门用户
  • 输入
  • 最新用户
  • 输入
  • 推荐用户
  • 输入
  • 搜索用户
  • 输入
  • 搜索用户
  • 输入
Plus (ThinkSNS+)
More
GitHubStar
Copyright © 2019 Chengdu ZhiYiChuangXiang Technology Co., Ltd. All rights reserved.