From fdda37dca9e66784fe65345bb9575da3008d1597 Mon Sep 17 00:00:00 2001 From: xfarrow Date: Fri, 15 Sep 2023 22:25:14 +0200 Subject: [PATCH] Update README.md --- secret-apis/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/secret-apis/README.md b/secret-apis/README.md index 0397e06..4029206 100644 --- a/secret-apis/README.md +++ b/secret-apis/README.md @@ -52,6 +52,18 @@ with this `JSON` body ``` You must provide the value `admin` for `username`, and the MD5 hash of your Tp-Link account's password as the value of `password`. You will get a token named `stok`. +You'll receive something like + +``` +{ + "error_code": 0, + "result": { + "stok": "*****", + "user_group": "root" + } +} +``` + ## Move the camera's motors Create a `POST` request to `https://ip_of_your_camera/stok={your_stok}/ds` with this `JSON` body