Bajie Charging
  1. Cabinet
Bajie Charging
  • Open API
    • 1.Get Device Info
      GET
    • 2.Create Rent Order
      POST
    • 3.Query Rent Order Status
      POST
    • 4.Mark order status as completed
      POST
    • 5.Get Order Detail
      GET
    • 6.Get Deivice List
      POST
  • Advance API
    • Cabinet
      • Device Operation
        POST
      • eject the battery for the specified device slot by repair
        POST
      • Rent and eject the battery for the specified device slot
        POST
      • Query All Device List
        GET
      • Query details based on Device Id
        GET
      • get device list by shop id
        GET
      • get all device list by page
        GET
      • Query battery list based on Device Id
        GET
      • Query slot list based on Device Id
        GET
      • binding device to shop
        POST
      • Update cabinet advertising information
        POST
    • Shop
      • get all shop list
      • get shop detail
      • create new shop
      • update shop
      • Delete shop
    • PriceStrategy
      • 1.Get Price Strategy Page
      • 2.Get Price Strategy Detail
      • 3.Create Or Update Price Strategy
      • 4.Delete Price Strategy
      • 5.Shop Bind Price Strategy
      • 6.Shop Unbind Price Strategy
    • Order
      • Order list
  • Cabinet Event Push
    • Cabinet Event Push Config
      POST
    • GET Cabinet Event Push Config
      GET
    • Cabinet Event Push
      POST
  1. Cabinet

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
/cabinet/bindAd
Update cabinet advertising information

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
optional
机柜ID列表
isRestart
boolean 
Restart immediately: false - do not restart, true - restart
optional
是否立即重启:false-不重启,true-重启
Default:
false
adConfigList
array[object (OpenAdConfigDTO) {8}] 
Advertisement Configuration List
optional
广告配置列表
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>)
optional
位置代码:P_GG_48_TYPE,0 {组成:'P_GG_'+机柜卡口数+‘_TYPE,’+位置} 位置:0-中间区域 1-左下,上部 2-右边,下部 3-二维码里面的LOGO>)
mediaType
string 
Media type (image, video, programSheet (slideshow))
optional
媒体类型(image,video,programSheet(轮播图))
mediaPath
string 
Media path (mediaType=image/video, required)
optional
媒体路径
startDate
string 
Start time
optional
开始时间
endDate
string 
End time
optional
结束时间
startTime
string 
Start time period
optional
开始时间段
endTime
string 
End time period
optional
结束时间段
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)
optional
中央视频广告区配置列表信息(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
{
  "": {}
}
Previous
binding device to shop
Next
get all shop list
Built with