媒资Episode列表:根据Aid和Source批量查询
POST
/v1/asset/episode/listByAidAndSource
AssetController
请求参数
Body 参数application/json
媒资剧集查询
aids
array[integer <int64>]
批量AID查询条件
>= 1 items<= 2147483647 items
sources
array[integer <int64>]
必需
pay_type
array[integer <int32>]
付费类型
source
integer <int32>
可选
ep_ids
array[string]
sids查询条件
epNames
array[string]
可选
sourcePayType
array[object (SourcePayType) {2}]
可选
source
integer <int32>
可选
payType
array[integer <int32>]
可选
示例
{
"aids": [
0
],
"sources": [
0
],
"pay_type": [
0
],
"source": 0,
"ep_ids": [
"string"
],
"epNames": [
"string"
],
"sourcePayType": [
{
"source": 0,
"payType": [
0
]
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://testgateway.dangbei.net/v1/asset/episode/listByAidAndSource' \
--header 'Content-Type: application/json' \
--data-raw '{
"aids": [
0
],
"sources": [
0
],
"pay_type": [
0
],
"source": 0,
"ep_ids": [
"string"
],
"epNames": [
"string"
],
"sourcePayType": [
{
"source": 0,
"payType": [
0
]
}
]
}'
返回响应
🟢200OK
application/json
Body
success
boolean
可选
errCode
string
可选
errMessage
string
可选
requestId
string
可选
data
array[object (AssetEpisodeCo) {19}]
可选
createTime
integer <int64>
创建时间
updateTime
integer <int64>
更新时间
id
integer <int64>
主键
aid
integer <int64>
影片ID
source
integer <int64>
播放源类型
epId
string
资源方id
name
string
期数
auth
integer <int32>
可选
payType
integer <int32>
可选
uuid
string
uuid
sort
integer <int64>
排序
len
integer <int64>
时长
streamType
string
码流类型
playUrl
string
播放地址
status
integer <int64>
状态
summary
string
剧集简介
extra
string
扩展字段
remoteImg
string
源图片地址
img
string
图片地址
示例
{
"success": true,
"errCode": "string",
"errMessage": "string",
"requestId": "string",
"data": [
{
"createTime": 0,
"updateTime": 0,
"id": 0,
"aid": 0,
"source": 0,
"epId": "string",
"name": "string",
"auth": 0,
"payType": 0,
"uuid": "string",
"sort": 0,
"len": 0,
"streamType": "string",
"playUrl": "string",
"status": 0,
"summary": "string",
"extra": "string",
"remoteImg": "string",
"img": "string"
}
]
}
🟠400Bad Request
🔴500Internal Server Error