定时屏幕状态
测试中
POST
/v2/player/scheduled-control/screen-status
提示
1.
2.
3.
请求参数
Header 参数
AppKey
string
接入键
默认值:
{{AppKey}}
Nonce
string
必需
CurTime
string
必需
CheckSum
string
请求签名
Body 参数application/json
playerIds
array[string]
播放器ID集合
schedules
array [object {5}]
定时计划配置
startDate
string
起始日期
endDate
string
截止日期
weekDays
array[integer]
生效星期配置
execTime
string
执行时间
status
string
控制状态
示例
{
"playerIds": [
"f14cb76a01320c2c4fba81bc0cb4b3af",
"85dacf69cb2c57bb508a6d126d189383",
"8921b722dc7f6b1b1e20dafcf553a554",
"6c09ee7576f9ec298be5e20e21569adb",
"f4db107e317e841585bbd7a67573885e",
"9b9ce094e2b9d70576460bd4c475748d"
],
"schedules": [
{
"startDate": "2025-01-01",
"endDate": "2025-12-31",
"weekDays": [],
"execTime": "06:30:00",
"status": "OPEN"
},
{
"startDate": "2025-01-01",
"endDate": "2025-12-31",
"weekDays": [],
"execTime": "21:30:00",
"status": "CLOSE"
},
{
"startDate": "2025-01-01",
"endDate": "2025-12-31",
"weekDays": [
1,
2,
3,
4,
5
],
"execTime": "09:00:00",
"status": "CLOSE"
},
{
"startDate": "2025-01-01",
"endDate": "2025-12-31",
"weekDays": [
1,
2,
3,
4,
5
],
"execTime": "17:00:00",
"status": "OPEN"
}
]
}
示例代码
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://open-cn.vnnox.com/v2/player/scheduled-control/screen-status' \
--header 'AppKey;' \
--header 'Nonce;' \
--header 'CurTime;' \
--header 'CheckSum;' \
--header 'Content-Type: application/json' \
--data-raw '{
"playerIds": [
"f14cb76a01320c2c4fba81bc0cb4b3af",
"85dacf69cb2c57bb508a6d126d189383",
"8921b722dc7f6b1b1e20dafcf553a554",
"6c09ee7576f9ec298be5e20e21569adb",
"f4db107e317e841585bbd7a67573885e",
"9b9ce094e2b9d70576460bd4c475748d"
],
"schedules": [
{
"startDate": "2025-01-01",
"endDate": "2025-12-31",
"weekDays": [],
"execTime": "06:30:00",
"status": "OPEN"
},
{
"startDate": "2025-01-01",
"endDate": "2025-12-31",
"weekDays": [],
"execTime": "21:30:00",
"status": "CLOSE"
},
{
"startDate": "2025-01-01",
"endDate": "2025-12-31",
"weekDays": [
1,
2,
3,
4,
5
],
"execTime": "09:00:00",
"status": "CLOSE"
},
{
"startDate": "2025-01-01",
"endDate": "2025-12-31",
"weekDays": [
1,
2,
3,
4,
5
],
"execTime": "17:00:00",
"status": "OPEN"
}
]
}'
返回响应
🟢200成功
application/json
Body
success
array[string]
成功播放器ID集合
fail
array[string]
失败播放器ID集合
示例
{
"success": [
"8f29699ae6db7c584b60fa345c984a0e",
"f14cb76a01320c2c4fba81bc0cb4b3af",
"85dacf69cb2c57bb508a6d126d189383",
"8921b722dc7f6b1b1e20dafcf553a554",
"6c09ee7576f9ec298be5e20e21569adb",
"f4db107e317e841585bbd7a67573885e",
"9b9ce094e2b9d70576460bd4c475748d"
],
"fail": []
}
🟠400请求有误
修改于 2025-04-18 07:16:03