Skip to content

Commit

Permalink
update: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rinov committed Sep 25, 2022
1 parent ad5a00c commit f3c4518
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ And then you can use `YoutubeDataAPI` request like this.
let request = VideoListRequest(part: [.id, .statistics], filter: .chart)

// Send a request.
ApiSession.shared.send(request) { result in
YoutubeAPI.shared.send(request) { result in
switch result {
case .success(let response):
print(response)
Expand Down Expand Up @@ -182,7 +182,7 @@ var nextPageToken: String?
...

// Send some request
ApiSession.shared.send(request) { [weak self] result in
YoutubeAPI.shared.send(request) { [weak self] result in
switch result {
case .success(let response):

Expand Down Expand Up @@ -222,7 +222,7 @@ And then you can use request requiring authorization, this is an example to get
let request = ActivityListRequest(part: [.snippet], filter: .mine(true))

// Send a request.
ApiSession.shared.send(request) { result in
YoutubeAPI.shared.send(request) { result in
switch result {
case .success(let video):
print(video)
Expand Down

0 comments on commit f3c4518

Please sign in to comment.