播放历史

获取用户播放历史

接口说明

此接口用于获取用户的播放历史(作品+剧集)。只能获取到用户已关注作品的播放历史。

权限需求

此接口需要登录状态才可以调用。

开始结束日期参数说明

开始日期不能晚于结束日期; 开始日期与结束日期不能相差大于一年(最多查询一年的数据); 当没有提供toDate参数时,默认将使用当前日期; 当没有提供fromDate参数时,默认将使用toDate减去三个月的日期。

get/api/v2/playhistory

Request

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

Query parameters

fromDatestring date-time nullable

开始日期

toDatestring date-time nullable

结束日期

Response

返回用户播放历史

errorCodeinteger

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

successboolean

接口是否调用成功

errorMessagestring nullable

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

errorDetailstring nullable

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

Changes

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