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
URLs on github were redirecting to a 404 page because url was being appended to twice. Removing "youtube/api-samples/blob/master/" as github will do it for you.
Copy file name to clipboardExpand all lines: java/README.md
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,29 +22,29 @@ YouTube API samples, see this video:
22
22
23
23
## Samples in this directory:
24
24
25
-
### [Authorize a request](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/Auth.java)
25
+
### [Authorize a request](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/Auth.java)
26
26
27
27
Description: This sample demonstrates how to use OAuth 2.0 to authorize an application to access resources on a user's behalf.
28
28
29
-
### [Add a channel subscription](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/AddSubscription.java)
29
+
### [Add a channel subscription](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/AddSubscription.java)
30
30
31
31
Method: youtube.subscriptions.insert<br>
32
32
Description: This sample calls the API's <code>subscriptions.insert</code> method to add a subscription to a specified
33
33
channel.
34
34
35
-
### [Add a featured video](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/InvideoProgramming.java)
35
+
### [Add a featured video](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/InvideoProgramming.java)
36
36
37
37
Method: youtube.channels.update<br>
38
38
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)
41
+
### [Create a playlist](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/PlaylistUpdates.java)
42
42
43
43
Method: youtube.playlists.insert<br>
44
44
Description: This sample calls the API's <code>playlists.insert</code> method to create a private playlist owned by the
45
45
channel authorizing the request.
46
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)
47
+
### [Create and manage comments](/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>
@@ -74,7 +74,7 @@ channel comments and once with the <code>videoId</code> parameter to retrieve vi
74
74
channel comment. In each case, the request body contains the <code>comment</code> resource being updated.</li>
75
75
</ul>
76
76
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)
77
+
### [Create and manage YouTube video caption tracks](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/Captions.java)
### [Post a channel bulletin](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/ChannelBulletin.java)
94
+
### [Post a channel bulletin](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/ChannelBulletin.java)
95
95
96
96
Method: youtube.activities.insert<br>
97
97
Description: This sample calls the API's <code>activities.insert</code> method to post a bulletin to the channel
98
98
associated with the request.
99
99
100
-
### [Retrieve my uploads](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/MyUploads.java)
100
+
### [Retrieve my uploads](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/MyUploads.java)
101
101
102
102
Method: youtube.playlistItems.list<br>
103
103
Description: This sample calls the API's <code>playlistItems.list</code> method to retrieve a list of videos uploaded
104
104
to the channel associated with the request. The code also calls the <code>channels.list</code> method with the
105
105
<code>mine</code> parameter set to <code>true</code> to retrieve the playlist ID that identifies the channel's uploaded
106
106
videos.
107
107
108
-
### [Search by keyword](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/Search.java)
108
+
### [Search by keyword](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/Search.java)
109
109
110
110
Method: youtube.search.list<br>
111
111
Description: This sample calls the API's <code>search.list</code> method to retrieve search results associated with
112
112
a particular keyword.
113
113
114
-
### [Search by location](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/GeolocationSearch.java)
114
+
### [Search by location](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/GeolocationSearch.java)
Description: This sample demonstrates how to use the following API methods to set and retrieve localized metadata for a
@@ -162,7 +162,7 @@ retrieve localized metadata in that language.</li>
162
162
parameter value to retrieve all of the localized metadata for that playlist.</li>
163
163
</ul>
164
164
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)
165
+
### [Set and retrieve localized video metadata](/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
@@ -176,62 +176,62 @@ retrieve localized metadata in that language.</li>
176
176
parameter value to retrieve all of the localized metadata for that video.</li>
177
177
</ul>
178
178
179
-
### [Update a video](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/UpdateVideo.java)
179
+
### [Update a video](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/UpdateVideo.java)
180
180
181
181
Method: youtube.videos.update<br>
182
182
Description: This sample calls the API's <code>videos.update</code> method to update a video owned by the channel
183
183
authorizing the request.
184
184
185
-
### [Upload a custom video thumbnail image](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/UploadThumbnail.java)
185
+
### [Upload a custom video thumbnail image](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/UploadThumbnail.java)
186
186
187
187
Method: youtube.thumbnails.set<br>
188
188
Description: This sample calls the API's <code>thumbnails.set</code> method to upload an image and set it as the
189
189
thumbnail image for a video. The request must be authorized by the channel that owns the video.
190
190
191
-
### [Upload a video](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/UploadVideo.java)
191
+
### [Upload a video](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/UploadVideo.java)
192
192
193
193
Method: youtube.videos.insert<br>
194
194
Description: This sample calls the API's <code>videos.insert</code> method to upload a video to the channel associated
195
195
with the request.
196
196
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)
197
+
### [Retrieve top 10 videos by viewcount](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/analytics/YouTubeAnalyticsReports.java)
198
198
199
199
Method: youtubeAnalytics.reports.query<br>
200
200
Description: This sample calls the API's <code>reports.query</code> method to retrieve YouTube Analytics data.
201
201
By default, the report retrieves the top 10 videos based on viewcounts, and it returns several metrics for those
202
202
videos, sorting the results in reverse order by viewcount. By setting command line parameters, you can use the
203
203
same code to retrieve other reports as well.
204
204
205
-
### [Create a reporting job](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/reporting/CreateReportingJob.java)
205
+
### [Create a reporting job](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/reporting/CreateReportingJob.java)
Description: This sample demonstrates how to retrieve reports created by a specific job. It calls the
216
216
<code>jobs.list</code> method to retrieve reporting jobs. It then calls the <code>reports.list</code> method with the
217
217
<code>jobId</code> parameter set to a specific job id to retrieve reports created by that job. Finally, the sample
218
218
prints out the download URL for each report.
219
219
220
-
### [Create a broadcast and stream](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/live/CreateBroadcast.java)
220
+
### [Create a broadcast and stream](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/live/CreateBroadcast.java)
Description: This sample calls the API's <code>liveBroadcasts.insert</code> and <code>liveStreams.insert</code>
224
224
methods to create a broadcast and a stream. Then, it calls the <code>liveBroadcasts.bind</code> method to bind
225
225
the stream to the broadcast.
226
226
227
-
### [Retrieve a channel's broadcasts](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/live/ListBroadcasts.java)
227
+
### [Retrieve a channel's broadcasts](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/live/ListBroadcasts.java)
228
228
229
229
Method: youtube.liveBroadcasts.list<br>
230
230
Description: This sample calls the API's <code>liveBroadcasts.list</code> method to retrieve a list of broadcasts for
231
231
the channel associated with the request. By default, the request retrieves all broadcasts for the channel, but you can
232
232
also specify a value for the <code>--broadcast-status</code> option to only retrieve broadcasts with a particular status.
233
233
234
-
### [Retrieve a channel's live video streams](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/live/ListStreams.java)
234
+
### [Retrieve a channel's live video streams](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/live/ListStreams.java)
235
235
236
236
Method: youtube.liveStreams.list<br>
237
237
Description: This sample calls the API's <code>liveStreams.list</code> method to retrieve a list of video stream settings
0 commit comments