Skip to content

Commit a0a4b41

Browse files
committed
update readme
1 parent 5718113 commit a0a4b41

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ Heavily inspired by [youtube-transcript](https://github.com/Kakulukian/youtube-t
1717

1818
## Usage
1919

20+
Library using one simple function to fetch transcript
21+
22+
```swift
23+
fetchTranscript(for videoId: String,config: TranscriptConfig = .init()) async throws -> [TranscriptResponse]
24+
```
25+
26+
Example:
27+
2028
```swift
2129
import YoutubeTranscript
2230

@@ -82,7 +90,7 @@ And add `YoutubeTranscript` as a dependency for your target:
8290

8391
```swift
8492
.target(
85-
name: "YourTarget",
93+
name: "<target>",
8694
dependencies: [
8795
.product(name: "YoutubeTranscript", package: "swift-youtube-transcript")
8896
]

0 commit comments

Comments
 (0)