File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ Playlists and channels information are retrieved from
344344the [ YouTube V3 API] ( https://developers.google.com/youtube/v3/docs/ ) ,
345345so you will need to provide an API key for all methods.
346346
347- All methods take a ` TranscriptRequest ` object as a parameter,
347+ All methods take a ` BulkTranscriptRequest ` object as a parameter,
348348which contains the following fields:
349349
350350- ` apiKey ` - YouTube API key.
@@ -359,7 +359,7 @@ All methods return a map which contains the video ID as a key and the correspond
359359YoutubeTranscriptApi youtubeTranscriptApi = TranscriptApiFactory . createDefault();
360360
361361// Create request object
362- TranscriptRequest request = new TranscriptRequest (" apiKey" );
362+ BulkTranscriptRequest request = new BulkTranscriptRequest (" apiKey" );
363363
364364// Retrieve all available transcripts for a given playlist
365365Map<String , TranscriptList > transcriptLists = youtubeTranscriptApi. listTranscriptsForPlaylist(" playlistId" , request);
@@ -373,7 +373,7 @@ using [fallback languages](#use-fallback-language) if needed.
373373
374374``` java
375375// Create request object
376- TranscriptRequest request = new TranscriptRequest (" apiKey" );
376+ BulkTranscriptRequest request = new BulkTranscriptRequest (" apiKey" );
377377
378378// Retrieve transcript content for all videos in a playlist
379379Map<String , TranscriptContent > transcriptLists = youtubeTranscriptApi. getTranscriptsForPlaylist(" playlistId" , request);
You can’t perform that action at this time.
0 commit comments