Skip to content

Commit 5964ca7

Browse files
Alphabetize samples by title
Example for authorizing requests is still first since it applies to almost all other examples in the directory.
1 parent 443723c commit 5964ca7

1 file changed

Lines changed: 70 additions & 70 deletions

File tree

java/README.md

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,42 @@ Method: youtube.channels.update<br>
3838
Description: This sample calls the API's <code>channels.update</code> method to set <code>invideoPromotion</code>
3939
properties for the channel.
4040

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)
48+
49+
Method: youtube.commentThreads.list, youtube.comments.insert, youtube.comments.list, youtube.comments.update,
50+
youtube.comments.setModerationStatus, youtube.comments.markAsSpam, youtube.comments.delete<br>
51+
Description: This sample demonstrates how to use the following API methods to create and manage comments:<br>
52+
<ul>
53+
<li>It calls the <code>commentThreads.list</code> method with the <code>videoId</code> parameter set to retrieve comments
54+
for a video.</li>
55+
<li>It calls the <code>comments.insert</code> method with the <code>parentId</code> parameter set to reply to an existing
56+
comment.</li>
57+
<li>It calls the <code>comments.list</code> method with the <code>parentId</code> parameter to retrieve the comments in the
58+
thread.</li>
59+
<li>It calls the <code>comments.update</code> method with comment in the request body to update a comment.</li>
60+
<li>It calls the <code>comments.setModerationStatus</code> method to set the moderation status of the comment, the
61+
<code>comments.markAsSpam</code> method to mark the comment as spam, and the <code>comments.delete</code> method to
62+
delete the comment, using the <code>id</code> parameter to identify the comment.</li></ul>
63+
64+
### [Create and manage comment threads](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/CommentThreads.java)
65+
66+
Method: youtube.commentThreads.insert, youtube.commentThreads.list, youtube.commentThreads.update<br>
67+
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+
4177
### [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)
4278

4379
Method: youtube.captions.insert, youtube.captions.list, youtube.captions.update, youtube.captions.download,
@@ -61,6 +97,28 @@ Method: youtube.activities.insert<br>
6197
Description: This sample calls the API's <code>activities.insert</code> method to post a bulletin to the channel
6298
associated with the request.
6399

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)
115+
116+
Method: youtube.search.list, youtube.videos.list<br>
117+
Description: This sample calls the API's <code>search.list</code> method with the <code>type</code>, <code>q</code>, <code>location</code>, and
118+
<code>locationRadius</code> parameters to retrieve search results matching the provided keyword within the radius centered
119+
at a particular location. Using the video IDs from the search result, the sample calls the API's <code>videos.list</code>
120+
method to retrieve location details of each video.
121+
64122
### [Set and retrieve localized channel metadata](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/ChannelLocalizations.java)
65123

66124
Method: youtube.channels.update, youtube.channels.list<br>
@@ -90,52 +148,6 @@ to retrieve localized metadata in that language.</li>
90148
<code>part</code> parameter value to retrieve all of the localized metadata for that channel section.</li>
91149
</ul>
92150

93-
### [Create and manage comments](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/CommentHandling.java)
94-
95-
Method: youtube.commentThreads.list, youtube.comments.insert, youtube.comments.list, youtube.comments.update,
96-
youtube.comments.setModerationStatus, youtube.comments.markAsSpam, youtube.comments.delete<br>
97-
Description: This sample demonstrates how to use the following API methods to create and manage comments:<br>
98-
<ul>
99-
<li>It calls the <code>commentThreads.list</code> method with the <code>videoId</code> parameter set to retrieve comments
100-
for a video.</li>
101-
<li>It calls the <code>comments.insert</code> method with the <code>parentId</code> parameter set to reply to an existing
102-
comment.</li>
103-
<li>It calls the <code>comments.list</code> method with the <code>parentId</code> parameter to retrieve the comments in the
104-
thread.</li>
105-
<li>It calls the <code>comments.update</code> method with comment in the request body to update a comment.</li>
106-
<li>It calls the <code>comments.setModerationStatus</code> method to set the moderation status of the comment, the
107-
<code>comments.markAsSpam</code> method to mark the comment as spam, and the <code>comments.delete</code> method to
108-
delete the comment, using the <code>id</code> parameter to identify the comment.</li></ul>
109-
110-
### [Create and manage comment threads](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/CommentThreads.java)
111-
112-
Method: youtube.commentThreads.insert, youtube.commentThreads.list, youtube.commentThreads.update<br>
113-
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)
124-
125-
Method: youtube.search.list, youtube.videos.list<br>
126-
Description: This sample calls the API's <code>search.list</code> method with the <code>type</code>, <code>q</code>, <code>location</code>, and
127-
<code>locationRadius</code> parameters to retrieve search results matching the provided keyword within the radius centered
128-
at a particular location. Using the video IDs from the search result, the sample calls the API's <code>videos.list</code>
129-
method to retrieve location details of each video.
130-
131-
### [Retrieve my uploads](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/MyUploads.java)
132-
133-
Method: youtube.playlistItems.list<br>
134-
Description: This sample calls the API's <code>playlistItems.list</code> method to retrieve a list of videos uploaded
135-
to the channel associated with the request. The code also calls the <code>channels.list</code> method with the
136-
<code>mine</code> parameter set to <code>true</code> to retrieve the playlist ID that identifies the channel's uploaded
137-
videos.
138-
139151
### [Set and retrieve localized playlist metadata](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/PlaylistLocalizations.java)
140152

141153
Method: youtube.playlists.update, youtube.playlists.list<br>
@@ -150,17 +162,19 @@ retrieve localized metadata in that language.</li>
150162
parameter value to retrieve all of the localized metadata for that playlist.</li>
151163
</ul>
152164

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)
160166

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
163-
a particular keyword.
167+
Method: youtube.videos.update, youtube.videos.list<br>
168+
Description: This sample demonstrates how to use the following API methods to set and retrieve localized metadata
169+
for a video:<br>
170+
<ul>
171+
<li>It calls the <code>videos.update</code> method to update the default language of a video's metadata and to add
172+
a localized version of this metadata in a selected language.</li>
173+
<li>It calls the <code>videos.list</code> method with the <code>hl</code> parameter set to a specific language to
174+
retrieve localized metadata in that language.</li>
175+
<li>It calls the <code>videos.list</code> method and includes <code>localizations</code> in the <code>part</code>
176+
parameter value to retrieve all of the localized metadata for that video.</li>
177+
</ul>
164178

165179
### [Update a video](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/UpdateVideo.java)
166180

@@ -180,20 +194,6 @@ Method: youtube.videos.insert<br>
180194
Description: This sample calls the API's <code>videos.insert</code> method to upload a video to the channel associated
181195
with the request.
182196

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)
184-
185-
Method: youtube.videos.update, youtube.videos.list<br>
186-
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-
197197
### [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)
198198

199199
Method: youtubeAnalytics.reports.query<br>

0 commit comments

Comments
 (0)