11## Samples in this directory:
22
3+ ### [ Authorize a request] ( /youtube/api-samples/blob/master/ruby/oauth/oauth_util.rb )
4+
5+ Description: The following code sample performs OAuth 2.0 authorization by checking for the presence of a local
6+ file that contains authorization credentials. If the file is not present, the script opens a browser and waits
7+ for a response, then saves the returned credentials locally.
8+
39### [ Add a channel subscription] ( /youtube/api-samples/blob/master/ruby/add_subscription.rb )
410
511Method: youtube.subscriptions.insert<br >
@@ -12,12 +18,6 @@ Method: youtube.activities.insert<br>
1218Description: This sample calls the API's <code >activities.insert</code > method to post a bulletin to the channel
1319associated with the request.
1420
15- ### [ Upload a video] ( /youtube/api-samples/blob/master/ruby/upload_video.rb )
16-
17- Method: youtube.videos.insert<br >
18- Description: This sample calls the API's <code >videos.insert</code > method to upload a video to the channel
19- associated with the request.
20-
2121### [ Retrieve my uploads] ( /youtube/api-samples/blob/master/ruby/my_uploads.rb )
2222
2323Method: youtube.playlistItems.list<br >
@@ -32,16 +32,16 @@ Method: youtube.search.list<br>
3232Description: This sample calls the API's <code >search.list</code > method to retrieve search results
3333associated with a particular keyword.
3434
35+ ### [ Upload a video] ( /youtube/api-samples/blob/master/ruby/upload_video.rb )
36+
37+ Method: youtube.videos.insert<br >
38+ Description: This sample calls the API's <code >videos.insert</code > method to upload a video to the channel
39+ associated with the request.
40+
3541### [ Retrieve top 10 videos by viewcount] ( /youtube/api-samples/blob/master/ruby/yt_analytics_report.rb )
3642
3743Method: youtubeAnalytics.reports.query<br >
3844Description: This sample calls the API's <code >reports.query</code > method to retrieve YouTube Analytics data.
3945By default, the report retrieves the top 10 videos based on viewcounts, and it returns several metrics for those
4046videos, sorting the results in reverse order by viewcount. By setting command line parameters, you can use the same
4147code to retrieve other reports as well.
42-
43- ### [ Authorize a request] ( /youtube/api-samples/blob/master/ruby/oauth/oauth_util.rb )
44-
45- Description: The following code sample performs OAuth 2.0 authorization by checking for the presence of a local
46- file that contains authorization credentials. If the file is not present, the script opens a browser and waits
47- for a response, then saves the returned credentials locally.
0 commit comments