Merge branch 'master' of https://myschools.me/suguo/hikvision-sdk
This commit is contained in:
commit
f92f2acdd2
|
|
@ -8,15 +8,30 @@ Content-Type: application/x-www-form-urlencoded
|
|||
|
||||
client_id=164edfd71b744dd88c945dbd5ae30a9a&client_secret=2f580d932d7d46029a2091ece681035c&grant_type=client_credentials&scope=yy
|
||||
|
||||
###
|
||||
GET https://api2.hik-cloud.com/api/v1/open/basic/groups/actions/listAll HTTP/1.1
|
||||
{{token}}
|
||||
### 924737beb6f74a8d85cb3177699198b2 02 浙江
|
||||
GET {{url}}/open/basic/groups/actions/listAll HTTP/1.1
|
||||
Authorization: {{token}}
|
||||
|
||||
###
|
||||
GET https://api2.hik-cloud.com/api/v1/open/basic/groups/actions/childrenList?parentNo=02 HTTP/1.1
|
||||
{{token}}
|
||||
### 设备注册
|
||||
POST {{url}}/open/basic/devices/create HTTP/1.1
|
||||
Content-Type: application/json
|
||||
Authorization: {{token}}
|
||||
|
||||
###
|
||||
GET https://api2.hik-cloud.com/api/v1/open/basic/devices/list?groupNo=1&pageNo=1&pageSize=50 HTTP/1.1
|
||||
{{token}}
|
||||
{
|
||||
"deviceSerial": "AF8534579",
|
||||
"groupNo": "02",
|
||||
"validateCode": "213222"
|
||||
}
|
||||
|
||||
|
||||
### 创建消费者 consumerId": "7db9420cdb2844f5ba8bba07d1417d54"
|
||||
POST {{url}}/mq/consumer/group1 HTTP/1.1
|
||||
Content-Type: application/json
|
||||
Authorization: {{token}}
|
||||
|
||||
### 消费消息
|
||||
POST {{url}}/mq/consumer/messages HTTP/1.1
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Authorization: {{token}}
|
||||
|
||||
autoCommit=true&consumerId=7db9420cdb2844f5ba8bba07d1417d54
|
||||
|
|
|
|||
Loading…
Reference in New Issue