Skip to content

Commit 7a8667a

Browse files
Jen O'Byrnejen-obyrne
authored andcommitted
Fix dotnet sample urls
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.
1 parent d234767 commit 7a8667a

8 files changed

Lines changed: 101 additions & 101 deletions

File tree

dotnet/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
## Samples in this directory:
22

3-
### [Create a playlist](/youtube/api-samples/blob/master/dotnet/PlaylistUpdates.cs)
3+
### [Create a playlist](/dotnet/PlaylistUpdates.cs)
44

55
Method: youtube.playlists.insert<br>
66
Description: The following code sample calls the API's <code>playlists.insert</code> method to create a private playlist
77
owned by the channel authorizing the request.
88

9-
### [Retrieve my uploads](/youtube/api-samples/blob/master/dotnet/MyUploads.cs)
9+
### [Retrieve my uploads](/dotnet/MyUploads.cs)
1010

1111
Method: youtube.playlistItems.list<br>
1212
Description: The following code sample calls the API's <code>playlistItems.list</code> method to retrieve a list of videos
1313
uploaded to the channel associated with the request. The code also calls the <code>channels.list</code> method with the
1414
<code>mine</code> parameter set to <code>true</code> to retrieve the playlist ID that identifies the channel's uploaded
1515
videos.
1616

17-
### [Search by keyword](/youtube/api-samples/blob/master/dotnet/Search.cs)
17+
### [Search by keyword](/dotnet/Search.cs)
1818

1919
Method: youtube.search.list<br>
2020
Description: The following code sample calls the API's <code>search.list</code> method to retrieve search results
2121
associated with a particular keyword.
2222

23-
### [Upload a video](/youtube/api-samples/blob/master/dotnet/UploadVideo.cs)
23+
### [Upload a video](/dotnet/UploadVideo.cs)
2424

2525
Method: youtube.videos.insert<br>
2626
Description: The following code sample calls the API's <code>videos.insert</code> method to upload a video to the channel

go/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,33 +36,33 @@ More information about the YouTube APIs can be found at https://developer.google
3636

3737
## Samples in this directory:
3838

39-
### [Authorize a request](/youtube/api-samples/blob/master/go/oauth.go)
39+
### [Authorize a request](/go/oauth.go)
4040

4141
Description: This code sample performs OAuth 2.0 authorization by checking for the presence of a local file that
4242
contains authorization credentials. If the file is not present, the script opens a browser and waits for a response,
4343
then saves the returned credentials locally.
4444

45-
### [Post a channel bulletin](/youtube/api-samples/blob/master/go/post_bulletin.go)
45+
### [Post a channel bulletin](/go/post_bulletin.go)
4646

4747
Method: youtube.activities.insert<br>
4848
Description: This code sample calls the API's <code>activities.insert</code> method to post a bulletin to the
4949
channel associated with the request.
5050

51-
### [Retrieve my uploads](/youtube/api-samples/blob/master/go/my_uploads.go)
51+
### [Retrieve my uploads](/go/my_uploads.go)
5252

5353
Method: youtube.playlistItems.list<br>
5454
Description: This code sample calls the API's <code>playlistItems.list</code> method to retrieve a list of
5555
videos uploaded to the channel associated with the request. The code also calls the <code>channels.list</code>
5656
method with the <code>mine</code> parameter set to <code>true</code> to retrieve the playlist ID that identifies
5757
the channel's uploaded videos.
5858

59-
### [Search by keyword](/youtube/api-samples/blob/master/go/search_by_keyword.go)
59+
### [Search by keyword](/go/search_by_keyword.go)
6060

6161
Method: youtube.search.list<br>
6262
Description: This code sample calls the API's <code>search.list</code> method to retrieve search results associated
6363
with a particular keyword.
6464

65-
### [Upload a video](/youtube/api-samples/blob/master/go/upload_video.go)
65+
### [Upload a video](/go/upload_video.go)
6666

6767
Method: youtube.videos.insert<br>
6868
Description: This code sample calls the API's <code>videos.insert</code> method to upload a video to the channel

java/README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,29 @@ YouTube API samples, see this video:
2222

2323
## Samples in this directory:
2424

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

2727
Description: This sample demonstrates how to use OAuth 2.0 to authorize an application to access resources on a user's behalf.
2828

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

3131
Method: youtube.subscriptions.insert<br>
3232
Description: This sample calls the API's <code>subscriptions.insert</code> method to add a subscription to a specified
3333
channel.
3434

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

3737
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)
41+
### [Create a playlist](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/PlaylistUpdates.java)
4242

4343
Method: youtube.playlists.insert<br>
4444
Description: This sample calls the API's <code>playlists.insert</code> method to create a private playlist owned by the
4545
channel authorizing the request.
4646

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

4949
Method: youtube.commentThreads.list, youtube.comments.insert, youtube.comments.list, youtube.comments.update,
5050
youtube.comments.setModerationStatus, youtube.comments.markAsSpam, youtube.comments.delete<br>
@@ -61,7 +61,7 @@ thread.</li>
6161
<code>comments.markAsSpam</code> method to mark the comment as spam, and the <code>comments.delete</code> method to
6262
delete the comment, using the <code>id</code> parameter to identify the comment.</li></ul>
6363

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)
64+
### [Create and manage comment threads](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/CommentThreads.java)
6565

6666
Method: youtube.commentThreads.insert, youtube.commentThreads.list, youtube.commentThreads.update<br>
6767
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
7474
channel comment. In each case, the request body contains the <code>comment</code> resource being updated.</li>
7575
</ul>
7676

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

7979
Method: youtube.captions.insert, youtube.captions.list, youtube.captions.update, youtube.captions.download,
8080
youtube.captions.delete<br>
@@ -91,35 +91,35 @@ tracks.</li>
9191
identify the caption track.</li>
9292
</ul>
9393

94-
### [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)
9595

9696
Method: youtube.activities.insert<br>
9797
Description: This sample calls the API's <code>activities.insert</code> method to post a bulletin to the channel
9898
associated with the request.
9999

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

102102
Method: youtube.playlistItems.list<br>
103103
Description: This sample calls the API's <code>playlistItems.list</code> method to retrieve a list of videos uploaded
104104
to the channel associated with the request. The code also calls the <code>channels.list</code> method with the
105105
<code>mine</code> parameter set to <code>true</code> to retrieve the playlist ID that identifies the channel's uploaded
106106
videos.
107107

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

110110
Method: youtube.search.list<br>
111111
Description: This sample calls the API's <code>search.list</code> method to retrieve search results associated with
112112
a particular keyword.
113113

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

116116
Method: youtube.search.list, youtube.videos.list<br>
117117
Description: This sample calls the API's <code>search.list</code> method with the <code>type</code>, <code>q</code>, <code>location</code>, and
118118
<code>locationRadius</code> parameters to retrieve search results matching the provided keyword within the radius centered
119119
at a particular location. Using the video IDs from the search result, the sample calls the API's <code>videos.list</code>
120120
method to retrieve location details of each video.
121121

122-
### [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)
122+
### [Set and retrieve localized channel metadata](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/ChannelLocalizations.java)
123123

124124
Method: youtube.channels.update, youtube.channels.list<br>
125125
Description: This sample demonstrates how to use the following API methods to set and retrieve localized metadata for a
@@ -134,7 +134,7 @@ retrieve localized metadata in that language.</li>
134134
parameter value to retrieve all of the localized metadata for that channel.</li>
135135
</ul>
136136

137-
### [Set and retrieve localized channel section metadata](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/ChannelSectionLocalizations.java)
137+
### [Set and retrieve localized channel section metadata](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/ChannelSectionLocalizations.java)
138138

139139
Method: youtube.channelSections.update, youtube.channelSections.list<br>
140140
Description: This sample demonstrates how to use the following API methods to set and retrieve localized metadata for a
@@ -148,7 +148,7 @@ to retrieve localized metadata in that language.</li>
148148
<code>part</code> parameter value to retrieve all of the localized metadata for that channel section.</li>
149149
</ul>
150150

151-
### [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)
151+
### [Set and retrieve localized playlist metadata](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/PlaylistLocalizations.java)
152152

153153
Method: youtube.playlists.update, youtube.playlists.list<br>
154154
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>
162162
parameter value to retrieve all of the localized metadata for that playlist.</li>
163163
</ul>
164164

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

167167
Method: youtube.videos.update, youtube.videos.list<br>
168168
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>
176176
parameter value to retrieve all of the localized metadata for that video.</li>
177177
</ul>
178178

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

181181
Method: youtube.videos.update<br>
182182
Description: This sample calls the API's <code>videos.update</code> method to update a video owned by the channel
183183
authorizing the request.
184184

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

187187
Method: youtube.thumbnails.set<br>
188188
Description: This sample calls the API's <code>thumbnails.set</code> method to upload an image and set it as the
189189
thumbnail image for a video. The request must be authorized by the channel that owns the video.
190190

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

193193
Method: youtube.videos.insert<br>
194194
Description: This sample calls the API's <code>videos.insert</code> method to upload a video to the channel associated
195195
with the request.
196196

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

199199
Method: youtubeAnalytics.reports.query<br>
200200
Description: This sample calls the API's <code>reports.query</code> method to retrieve YouTube Analytics data.
201201
By default, the report retrieves the top 10 videos based on viewcounts, and it returns several metrics for those
202202
videos, sorting the results in reverse order by viewcount. By setting command line parameters, you can use the
203203
same code to retrieve other reports as well.
204204

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

207207
Method: youtubeReporting.reportTypes.list, youtubeReporting.jobs.create<br>
208208
Description: This sample demonstrates how to create a reporting job. It calls the <code>reportTypes.list</code> method
209209
to retrieve a list of available report types. It then calls the <code>jobs.create</code> method to create a new reporting
210210
job.
211211

212-
### [Retrieve reports](/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/reporting/RetrieveReports.java)
212+
### [Retrieve reports](/java/src/main/java/com/google/api/services/samples/youtube/cmdline/reporting/RetrieveReports.java)
213213

214214
Method: youtubeReporting.jobs.list, youtubeReporting.reports.list<br>
215215
Description: This sample demonstrates how to retrieve reports created by a specific job. It calls the
216216
<code>jobs.list</code> method to retrieve reporting jobs. It then calls the <code>reports.list</code> method with the
217217
<code>jobId</code> parameter set to a specific job id to retrieve reports created by that job. Finally, the sample
218218
prints out the download URL for each report.
219219

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

222222
Method: youtube.liveBroadcasts.bind,youtube.liveBroadcasts.insert,youtube.liveStreams.insert<br>
223223
Description: This sample calls the API's <code>liveBroadcasts.insert</code> and <code>liveStreams.insert</code>
224224
methods to create a broadcast and a stream. Then, it calls the <code>liveBroadcasts.bind</code> method to bind
225225
the stream to the broadcast.
226226

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

229229
Method: youtube.liveBroadcasts.list<br>
230230
Description: This sample calls the API's <code>liveBroadcasts.list</code> method to retrieve a list of broadcasts for
231231
the channel associated with the request. By default, the request retrieves all broadcasts for the channel, but you can
232232
also specify a value for the <code>--broadcast-status</code> option to only retrieve broadcasts with a particular status.
233233

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

236236
Method: youtube.liveStreams.list<br>
237237
Description: This sample calls the API's <code>liveStreams.list</code> method to retrieve a list of video stream settings

0 commit comments

Comments
 (0)