Update 'README.md'

get_list_of_videos
mcotton 2023-08-17 15:39:58 +00:00
parent 6362a28be4
commit 9c492b9566
1 changed files with 7 additions and 3 deletions

View File

@ -23,9 +23,9 @@ een = EagleEyev3(config)
If you are going to use the Oauth2 login flow, construct the login url If you are going to use the Oauth2 login flow, construct the login url
``` ```
base_url = "https://auth.eagleeyenetworks.com/oauth2/authorize" base_url = "https://auth.eagleeyenetworks.com/oauth2/authorize"
path_url = f"?client_id={een.client_id}&response_type=code&scope=vms.all&redirect_uri={een.redirect_uri}" path_url = f"?client_id={een.client_id}&response_type=code&scope=vms.all&redirect_uri={een.redirect_uri}"
login_url = f"{base_url}{path_url}" } login_url = f"{base_url}{path_url}" }
``` ```
Handle the callback from Oauth2 including the code, proceed to get access and refresh tokens Handle the callback from Oauth2 including the code, proceed to get access and refresh tokens
@ -58,6 +58,10 @@ You can get a live preview image
camera.get_live_preview() camera.get_live_preview()
``` ```
You can get a list of all feeds
```
een.get_list_of_feeds()
```