Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Own-account data only: every call reads the user who authorized the token, never other creators.
- A user access token lives 2 hours; its refresh token lives 180 days and is replaced at each refresh. Refresh outside this catalog and set the new token.
- Fields are opt-in: name the ones you want in the fields query parameter; each needs its scope.
Endpoints
Get the authorized user’s profile
- Only fields whose scope the user granted are returned.
List the authorized user’s videos
- A read over POST. Needs the video.list scope. Only the authorizing user’s own videos.
Get specific videos of the authorized user
- A read over POST. Needs the video.list scope. The ids are checked against the authorizing user: use only their own videos.