You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: go/README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,19 @@ Description: This code sample performs OAuth 2.0 authorization by checking for t
47
47
contains authorization credentials. If the file is not present, the script opens a browser and waits for a response,
48
48
then saves the returned credentials locally.
49
49
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
0 commit comments