1
0
mirror of https://github.com/USA-RedDragon/badnest.git synced 2025-03-13 20:47:49 +00:00

Added auth cookie to get image request

This commit is contained in:
Nick Babenko 2020-03-10 08:29:57 +00:00
parent d80291347a
commit 180c46e84d

View File

@ -507,7 +507,8 @@ class NestAPI():
try:
r = self._session.get(
f'{self._camera_url}/get_image?uuid={device_id}' +
f'&cachebuster={now}'
f'&cachebuster={now}',
headers={"cookie": f'user_token={self._access_token}'},
)
return r.content