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
Description: This sample calls the API's <code>channels.update</code> method to set <code>invideoPromotion</code>
39
39
properties for the channel.
40
40
41
+
### [Create a playlist](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/PlaylistUpdates.java)
42
+
43
+
Method: youtube.playlists.insert<br>
44
+
Description: This sample calls the API's <code>playlists.insert</code> method to create a private playlist owned by the
45
+
channel authorizing the request.
46
+
47
+
### [Create and manage comments](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/CommentHandling.java)
Description: This sample demonstrates how to use the following API methods to create and manage top-level comments:<br>
68
+
<ul>
69
+
<li>It calls the <code>commentThreads.insert</code> method once with the <code>channelId</code> parameter to create a
70
+
channel comment and once with the <code>videoId</code> parameter to create a video comment.</li>
71
+
<li>It calls the <code>commentThreads.list</code> method once with the <code>channelId</code> parameter to retrieve
72
+
channel comments and once with the <code>videoId</code> parameter to retrieve video comments.</li>
73
+
<li>It calls the <code>commentThreads.update</code> method once to update a video comment and then again to update a
74
+
channel comment. In each case, the request body contains the <code>comment</code> resource being updated.</li>
75
+
</ul>
76
+
41
77
### [Create and manage YouTube video caption tracks](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/Captions.java)
Description: This sample calls the API's <code>activities.insert</code> method to post a bulletin to the channel
62
98
associated with the request.
63
99
100
+
### [Retrieve my uploads](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/MyUploads.java)
101
+
102
+
Method: youtube.playlistItems.list<br>
103
+
Description: This sample calls the API's <code>playlistItems.list</code> method to retrieve a list of videos uploaded
104
+
to the channel associated with the request. The code also calls the <code>channels.list</code> method with the
105
+
<code>mine</code> parameter set to <code>true</code> to retrieve the playlist ID that identifies the channel's uploaded
106
+
videos.
107
+
108
+
### [Search by keyword](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/Search.java)
109
+
110
+
Method: youtube.search.list<br>
111
+
Description: This sample calls the API's <code>search.list</code> method to retrieve search results associated with
112
+
a particular keyword.
113
+
114
+
### [Search by location](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/GeolocationSearch.java)
@@ -90,52 +148,6 @@ to retrieve localized metadata in that language.</li>
90
148
<code>part</code> parameter value to retrieve all of the localized metadata for that channel section.</li>
91
149
</ul>
92
150
93
-
### [Create and manage comments](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/CommentHandling.java)
Description: This sample demonstrates how to use the following API methods to create and manage top-level comments:<br>
114
-
<ul>
115
-
<li>It calls the <code>commentThreads.insert</code> method once with the <code>channelId</code> parameter to create a
116
-
channel comment and once with the <code>videoId</code> parameter to create a video comment.</li>
117
-
<li>It calls the <code>commentThreads.list</code> method once with the <code>channelId</code> parameter to retrieve
118
-
channel comments and once with the <code>videoId</code> parameter to retrieve video comments.</li>
119
-
<li>It calls the <code>commentThreads.update</code> method once to update a video comment and then again to update a
120
-
channel comment. In each case, the request body contains the <code>comment</code> resource being updated.</li>
121
-
</ul>
122
-
123
-
### [Search by geolocation](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/GeolocationSearch.java)
@@ -150,17 +162,19 @@ retrieve localized metadata in that language.</li>
150
162
parameter value to retrieve all of the localized metadata for that playlist.</li>
151
163
</ul>
152
164
153
-
### [Create a playlist](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/PlaylistUpdates.java)
154
-
155
-
Method: youtube.playlists.insert<br>
156
-
Description: This sample calls the API's <code>playlists.insert</code> method to create a private playlist owned by the
157
-
channel authorizing the request.
158
-
159
-
### [Search by keyword](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/Search.java)
165
+
### [Set and retrieve localized video metadata](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/VideoLocalizations.java)
160
166
161
-
Method: youtube.search.list<br>
162
-
Description: This sample calls the API's <code>search.list</code> method to retrieve search results associated with
Description: This sample calls the API's <code>videos.insert</code> method to upload a video to the channel associated
181
195
with the request.
182
196
183
-
### [Set and retrieve localized video metadata](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/VideoLocalizations.java)
Description: This sample demonstrates how to use the following API methods to set and retrieve localized metadata
187
-
for a video:<br>
188
-
<ul>
189
-
<li>It calls the <code>videos.update</code> method to update the default language of a video's metadata and to add
190
-
a localized version of this metadata in a selected language.</li>
191
-
<li>It calls the <code>videos.list</code> method with the <code>hl</code> parameter set to a specific language to
192
-
retrieve localized metadata in that language.</li>
193
-
<li>It calls the <code>videos.list</code> method and includes <code>localizations</code> in the <code>part</code>
194
-
parameter value to retrieve all of the localized metadata for that video.</li>
195
-
</ul>
196
-
197
197
### [Retrieve top 10 videos by viewcount](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/analytics/YouTubeAnalyticsReports.java)
0 commit comments