- Open API
- Advance API
- Cabinet
- Device OperationPOST
- eject the battery for the specified device slot by repairPOST
- Rent and eject the battery for the specified device slotPOST
- Query All Device ListGET
- Query details based on Device IdGET
- get device list by shop idGET
- get all device list by pageGET
- Query battery list based on Device IdGET
- Query slot list based on Device IdGET
- binding device to shopPOST
- Update cabinet advertising informationPOST
- Shop
- PriceStrategy
- Order
- Cabinet Event Push
Update cabinet advertising information
Production
https://developer.chargenow.top/cdb-open-api/v1
Production
https://developer.chargenow.top/cdb-open-api/v1
POST
https://developer.chargenow.top/cdb-open-api/v1
Request
Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Body Params application/json
cabinetIdList
array[string]
Cabinet ID List
isRestart
boolean
Restart immediately: false - do not restart, true - restart
Default:
false
adConfigList
array[object (OpenAdConfigDTO) {8}]
Advertisement Configuration List
code
string
Position code: P_GG_48_TYPE,0 {composition: 'P_GG_'+cabinet slot count+'_TYPE,'+position} Position: 0-middle area; 1-lower left, upper part; 2-right, lower part; 3-LOGO in the QR code>)
mediaType
string
Media type (image, video, programSheet (slideshow))
mediaPath
string
Media path (mediaType=image/video, required)
startDate
string
Start time
endDate
string
End time
startTime
string
Start time period
endTime
string
End time period
videoList
array[object (Central video advertising area configuration list information (non-empty when mediaType=programSheet)) {4}]
Central video advertising area configuration list information (non-empty when mediaType=programSheet)
Example
{
"cabinetIdList": [
"string"
],
"isRestart": false,
"adConfigList": [
{
"code": "string",
"mediaType": "string",
"mediaPath": "string",
"startDate": "string",
"endDate": "string",
"startTime": "string",
"endTime": "string",
"videoList": [
{
"version": 0,
"seq": 0,
"url": "string",
"playoutTime": 0
}
]
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://developer.chargenow.top/cdb-open-api/v1/cabinet/bindAd' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"cabinetIdList": [
"string"
],
"isRestart": false,
"adConfigList": [
{
"code": "string",
"mediaType": "string",
"mediaPath": "string",
"startDate": "string",
"endDate": "string",
"startTime": "string",
"endTime": "string",
"videoList": [
{
"version": 0,
"seq": 0,
"url": "string",
"playoutTime": 0
}
]
}
]
}'
Responses
🟢200成功
application/json
Body
返回数据
key
object
optional
Example
{
"": {}
}