mirror of
https://github.com/USA-RedDragon/badnest.git
synced 2025-04-17 17:40:03 +01:00
Added authentication to get cameras request
This commit is contained in:
parent
7ab48d968e
commit
c851671f33
@ -109,7 +109,8 @@ class NestAPI():
|
|||||||
try:
|
try:
|
||||||
r = self._session.get(
|
r = self._session.get(
|
||||||
f"{CAMERA_WEBAPI_BASE}/api/cameras."
|
f"{CAMERA_WEBAPI_BASE}/api/cameras."
|
||||||
+ "get_owned_and_member_of_with_properties"
|
+ "get_owned_and_member_of_with_properties",
|
||||||
|
headers={"Authorization": f"Basic {self._access_token}"},
|
||||||
)
|
)
|
||||||
|
|
||||||
for camera in r.json()["items"]:
|
for camera in r.json()["items"]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user