Skip to content

Commit af60ce9

Browse files
authored
docs: update README.md
1 parent c237cb4 commit af60ce9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ Playlists and channels information are retrieved from
344344
the [YouTube V3 API](https://developers.google.com/youtube/v3/docs/),
345345
so 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,
348348
which 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
359359
YoutubeTranscriptApi 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
365365
Map<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
379379
Map<String, TranscriptContent> transcriptLists = youtubeTranscriptApi.getTranscriptsForPlaylist("playlistId", request);

0 commit comments

Comments
 (0)