From b0b3555d98ac74bb3715e2783fad76cb3ca506bb Mon Sep 17 00:00:00 2001 From: "suguo.yao" Date: Mon, 20 Nov 2023 12:39:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E6=8E=A5=E5=85=A5=E4=B8=8E?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E5=AE=8C=E6=88=90\?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hikvision.http | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/hikvision.http b/hikvision.http index d9d0ed9..0a518de 100644 --- a/hikvision.http +++ b/hikvision.http @@ -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 \ No newline at end of file +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" +} + + \ No newline at end of file