Skip to content

Commit f8e10f7

Browse files
authored
Merge pull request #9045 from avnerms/patch-4
adding GetAccounts to Auth API 2
2 parents 48cba45 + 3277d0e commit f8e10f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

articles/cognitive-services/video-indexer/video-indexer-use-apis.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ Each call to the Operations API should be associated with an access token, match
5454
- Account level – account level access tokens let you perform operations on the account level. for example, Upload video, list all videos, create a language model, etc.
5555
- Video level – video level access tokens let you perform operations on specific videos. for example, get video insights, download captions, get widgets, etc.
5656

57+
To make things easier, you can use the **Authorization** API > **GetAccounts** to get your accounts without obtaining a user token first. You can also ask to get the accounts with valid tokens, enabling you to skip an additional call to get an account token.
58+
5759
Access tokens expire after 1 hour. Make sure your access token is valid before using the Operations API. If expires, call the Authorization API again to get a new access token.
5860

5961
You are ready to start integrating with the API. Find [the detailed description of each Video Indexer REST API](http://api-portal.videoindexer.ai/).

0 commit comments

Comments
 (0)