Where can I find the document 'youtube-v3-api-captions.json'?

I am trying to use the YouTube API to retrieve videos, but the example is incomplete: https://developers.google.com/youtube/v3/code_samples/python#create_and_manage_youtube_video_caption_tracks

In particular, it has this comment + code:

# Trusted testers can download this discovery document from the developers page
# and it should be in the same directory with the code.
with open("youtube-v3-api-captions.json", "r") as f:
  doc = f.read()
  return build_from_document(doc, http=credentials.authorize(httplib2.Http()))

But it is not at all clear where the file can be found youtube-v3-api-captions.json.

Where can I find him?

+4
source share

All Articles