Plus (ThinkSNS+)

Plus (ThinkSNS+)

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

›动态

基本

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

用户

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

动态

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

音乐

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

问答

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

资讯

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

圈子

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

打赏

  • 打赏动态
  • 新版打赏动态
  • 动态打赏列表

打赏动态

POST /feeds/{feed}/rewards

Parameters

nametypemustdescription
amountintyes打赏金额
passwordstring根据启动信息决定是否传递,用户密码,支付需要用户输入密码进行付费支付。)

Response

Headers

Status: 201 Created

Body

{
    "message": [
        "打赏成功"
    ]
}

打赏动态

POST /feeds/{feed}/rewards

Parameters

nametypemustdescription
amountintyes打赏金额
passwordstring根据启动信息决定是否传递,用户密码,支付需要用户输入密码进行付费支付。)

Response

Headers

Status: 201 Created

Body

{
    "message": [
        "打赏成功"
    ]
}

新版打赏动态

POST /feeds/{feed}/new-rewards

Parameters

nametypemustdescription
amountintyes打赏金额
passwordstring根据启动信息决定是否传递,用户密码,支付需要用户输入密码进行付费支付。)

Response

Headers

Status: 201 Created

Body

{
    "message": [
        "打赏成功"
    ]
}

动态打赏列表

GET /feeds/{feed}/rewards

Parameters

nametypemustdescription
limitintno列表返回数据条数
offsetintno数据偏移量,翻页时传入
orderstringno排序 正序-asc 倒序desc
order_typestringno排序规则 date-按时间 amount-按金额

Response

Headers

Status: 200 OK

Body

[
    {
        "id": 6,
        "user_id": 1,
        "target_user": 1,
        "amount": 200,
        "rewardable_id": 1,
        "rewardable_type": "feeds",
        "created_at": "2017-08-01 08:55:49",
        "updated_at": "2017-08-01 08:55:49",
        "user": {
            "id": 1,
            "name": "root",
            "bio": null,
            "sex": 0,
            "location": null,
            "created_at": "2017-07-31 03:16:19",
            "updated_at": "2017-07-31 03:16:19",
            "avatar": null,
            "bg": null,
            "verified": null,
            "extra": {
                "user_id": 1,
                "likes_count": 0,
                "comments_count": 1,
                "followers_count": 0,
                "followings_count": 0,
                "updated_at": "2017-07-31 06:06:58",
                "feeds_count": 0
            }
        }
    },
    {
        "id": 5,
        "user_id": 1,
        "target_user": 1,
        "amount": 200,
        "rewardable_id": 1,
        "rewardable_type": "feeds",
        "created_at": "2017-08-01 08:54:29",
        "updated_at": "2017-08-01 08:54:29",
        "user": {
            "id": 1,
            "name": "root",
            "bio": null,
            "sex": 0,
            "location": null,
            "created_at": "2017-07-31 03:16:19",
            "updated_at": "2017-07-31 03:16:19",
            "avatar": null,
            "bg": null,
            "verified": null,
            "extra": {
                "user_id": 1,
                "likes_count": 0,
                "comments_count": 1,
                "followers_count": 0,
                "followings_count": 0,
                "updated_at": "2017-07-31 06:06:58",
                "feeds_count": 0
            }
        }
    },
    {
        "id": 4,
        "user_id": 1,
        "target_user": 1,
        "amount": 200,
        "rewardable_id": 1,
        "rewardable_type": "feeds",
        "created_at": "2017-08-01 08:46:22",
        "updated_at": "2017-08-01 08:46:22",
        "user": {
            "id": 1,
            "name": "root",
            "bio": null,
            "sex": 0,
            "location": null,
            "created_at": "2017-07-31 03:16:19",
            "updated_at": "2017-07-31 03:16:19",
            "avatar": null,
            "bg": null,
            "verified": null,
            "extra": {
                "user_id": 1,
                "likes_count": 0,
                "comments_count": 1,
                "followers_count": 0,
                "followings_count": 0,
                "updated_at": "2017-07-31 06:06:58",
                "feeds_count": 0
            }
        }
    }
]
名称描述
id打赏记录id
user_id打赏用户id
target_user打赏目标用户id
amount打赏金额
user打赏用户信息
user.name打赏用户名称
user.avatar打赏用户头像
← 置顶排行榜 →
  • 打赏动态
    • Parameters
    • Response
  • 打赏动态
    • Parameters
    • Response
  • 新版打赏动态
    • Parameters
    • Response
  • 动态打赏列表
    • Parameters
    • Response
Plus (ThinkSNS+)
More
GitHubStar
Copyright © 2019 Chengdu ZhiYiChuangXiang Technology Co., Ltd. All rights reserved.