Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 720dc5c

Browse files
Update README.md
1 parent e869e95 commit 720dc5c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

go/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,19 @@ Description: This code sample performs OAuth 2.0 authorization by checking for t
4747
contains authorization credentials. If the file is not present, the script opens a browser and waits for a response,
4848
then saves the returned credentials locally.
4949

50+
### [List playlists](/go/playlists.go)
51+
52+
Methods: youtube.playlists.list<br>
53+
Description: This code sample calls the API's `playlists.list` method. Use command-line flags to define the parameters you want to use in the request as shown in the following examples:</p>
54+
55+
```
56+
# Retrieve playlists for a specified channel
57+
go run playlists.go oauth.go errors.go --channelId=UC_x5XG1OV2P6uZZ5FSM9Ttw
58+
59+
# Retrieve authenticated user's playlists
60+
go run playlists.go oauth.go errors.go --mine=true
61+
```
62+
5063
### [Retrieve my uploads](/go/my_uploads.go)
5164

5265
Methods: youtube.channels.list, youtube.playlistItems.list<br>

0 commit comments

Comments
 (0)