弹幕

向指定的弹幕库发送弹幕

接口说明

此接口用于弹弹play客户端向服务器的指定弹幕库发送弹幕。 第三方开发者请使用 /comment/{episodeId}/app 接口发送弹幕。

权限需求

此接口需要用户登录后才可使用

post/api/v2/comment/{episodeId}

Request

  • Base URL: https://api.dandanplay.net
  • URL: https://api.dandanplay.net/api/v2/comment/{episodeId}
  • Auth: one of:
    • API key in header X-AppId
    • API key in header X-AppSecret
    • HTTP bearer

Path parameters

episodeIdinteger required

弹幕库ID

Request body

timenumber double

弹幕出现时间,单位为秒

modeinteger

弹幕模式:1-普通弹幕,4-顶部弹幕,5-底部弹幕

colorinteger

弹幕颜色,计算方式为 Rx255x255+Gx255+B

commentstring nullable

弹幕内容,不能长于100个字符

Response

返回发送弹幕的结果

errorCodeinteger

错误代码,0表示没有发生错误,非0表示有错误,详细信息会包含在errorMessage属性中

successboolean

接口是否调用成功

errorMessagestring nullable

当发生错误时,说明错误具体原因

errorDetailstring nullable

当参数校验失败时,提供可供调用方定位问题字段的补充信息。

cidinteger

此弹幕库中的弹幕ID

Changes

No recorded changes to this operation across all 1 revision of this API.