关注

添加关注

接口说明

此接口用于为用户增加关注某一部作品。

权限需求

此接口需要登录状态才能调用,同时应用应拥有添加关注的权限。

post/api/v2/favorite

Request

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

Request body

animeIdinteger

动画作品编号

favoriteStatus'favorited' | 'finished' | 'abandoned'
ratinginteger

给作品打分(1-10分),0代表不修改当前分数

commentstring nullable

给作品添加评论,最长为500个字符。当值为null或空字符串时将不修改当前的值。 如果希望清空所有文字,请传入至少一个空格。

Response

返回添加关注的结果

errorCodeinteger

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

successboolean

接口是否调用成功

errorMessagestring nullable

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

errorDetailstring nullable

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

Changes

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