Skip to content

Commit 733fbd2

Browse files
Alphabetize by title
Sample for authorizing a request is still first, sample for YT Analytics API is still last
1 parent 3606b7f commit 733fbd2

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

ruby/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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

511
Method: youtube.subscriptions.insert<br>
@@ -12,12 +18,6 @@ Method: youtube.activities.insert<br>
1218
Description: This sample calls the API's <code>activities.insert</code> method to post a bulletin to the channel
1319
associated 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

2323
Method: youtube.playlistItems.list<br>
@@ -32,16 +32,16 @@ Method: youtube.search.list<br>
3232
Description: This sample calls the API's <code>search.list</code> method to retrieve search results
3333
associated 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

3743
Method: youtubeAnalytics.reports.query<br>
3844
Description: This sample calls the API's <code>reports.query</code> method to retrieve YouTube Analytics data.
3945
By default, the report retrieves the top 10 videos based on viewcounts, and it returns several metrics for those
4046
videos, sorting the results in reverse order by viewcount. By setting command line parameters, you can use the same
4147
code 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

Comments
 (0)