设备接入与创建完成\

This commit is contained in:
suguo.yao 2023-11-20 12:39:28 +08:00
parent 40b3045a36
commit b0b3555d98
1 changed files with 21 additions and 5 deletions

View File

@ -1,8 +1,24 @@
@url=https://api2.hik-cloud.com/oauth
@token=a08a8044-3770-41f5-b5a5-048004a723ac
@token_type=bearer
@url=https://api2.hik-cloud.com/api/v1/open
@token=bearer a08a8044-3770-41f5-b5a5-048004a723ac
POST {{url}}/token HTTP/1.1
POST https://api2.hik-cloud.com/oauth/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
client_id=164edfd71b744dd88c945dbd5ae30a9a&client_secret=2f580d932d7d46029a2091ece681035c&grant_type=client_credentials&scope=yy
client_id=164edfd71b744dd88c945dbd5ae30a9a&client_secret=2f580d932d7d46029a2091ece681035c&grant_type=client_credentials&scope=yy
### 924737beb6f74a8d85cb3177699198b2 02 浙江
GET {{url}}/basic/groups/actions/listAll HTTP/1.1
Authorization: {{token}}
### 设备注册
POST {{url}}/basic/devices/create HTTP/1.1
Content-Type: application/json
Authorization: {{token}}
{
"deviceSerial": "AF8534579",
"groupNo": "02",
"validateCode": "213222"
}