Plus (ThinkSNS+)

Plus (ThinkSNS+)

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

›音乐

基本

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

用户

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

动态

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

音乐

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

问答

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

资讯

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

圈子

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

评论

  • 音乐评论列表
  • 专辑评论列表
  • 添加音乐评论
  • 添加专辑评论
  • 删除音乐评论
  • 删除专辑评论

音乐评论列表

GET /music/{music}/comments

Parameters

名称类型描述
limitInteger可选,默认值 15 ,获取条数
max_idInteger可选,上次获取到数据最后一条 ID,用于获取该 ID 之后的数据。

Response

Status: 200 OK
[
    {
        "id": 2,
        "commentable_type": "musics", // 资源标识
        "commentable_id": 1, // 资源id
        "user_id": 1, // 评论者
        "target_user": 0, // 资源作者
        "reply_user": 0, // 回复者
        "created_at": "2017-07-24 15:09:27",
        "updated_at": "2017-07-24 15:09:28",
        "body": "啦啦啦啦啦" // 评论内容
    }
]

专辑评论列表

GET /music/specials/{special}/comments

Parameters

名称类型描述
limitInteger可选,默认值 15 ,获取条数
max_idInteger可选,上次获取到数据最后一条 ID,用于获取该 ID 之后的数据。

Response

Status: 200 OK
[
    {
        "id": 1,
        "commentable_type": "music_specials", // 资源标识
        "commentable_id": 1,
        "user_id": 1,
        "target_user": 0,
        "reply_user": 0,
        "created_at": "2017-07-24 15:09:27",
        "updated_at": "2017-07-24 15:09:28",
        "body": "辣鸡啊"
    }
]

添加音乐评论

POST /music/{music}/comments

Parameters

名称类型描述
bodystring评论内容
reply_userInteger被回复者 默认为0

Response

Status: 201 Created
{
    "message": [
        "操作成功"
    ],
    "comment": { // 评论信息
        "user_id": 1,
        "reply_user": 0,
        "target_user": 0,
        "body": "辣鸡啊啊啊啊",
        "commentable_type": "musics",
        "commentable_id": 1,
        "updated_at": "2017-07-24 09:12:03",
        "created_at": "2017-07-24 09:12:03",
        "id": 13
    }
}

添加专辑评论

POST /music/specials/{special}/comments

Parameters

名称类型描述
bodystring评论内容
reply_userInteger被回复者 默认为0

Response

Status: 200 OK
{
    "message": [
        "操作成功"
    ],
    "comment": { // 评论信息
        "user_id": 1,
        "reply_user": 0,
        "target_user": 0,
        "body": "因吹斯听",
        "commentable_type": "music_specials",
        "commentable_id": 1,
        "updated_at": "2017-07-24 09:12:03",
        "created_at": "2017-07-24 09:12:03",
        "id": 13
    }
}

删除音乐评论

DELETE /music/{music}/comments/{comment}

Response

Status: 204 No Content

删除专辑评论

DELETE /music/specials/{special}/comments/{comment}

Response

Status: 204 No Conetent
← 点赞收藏 →
  • 音乐评论列表
    • Parameters
  • 专辑评论列表
    • Parameters
  • 添加音乐评论
    • Parameters
  • 添加专辑评论
    • Parameters
  • 删除音乐评论
  • 删除专辑评论
Plus (ThinkSNS+)
More
GitHubStar
Copyright © 2019 Chengdu ZhiYiChuangXiang Technology Co., Ltd. All rights reserved.