| Class | YouTubeG::Client |
| In: |
lib/youtube_g/client.rb
|
| Parent: | Object |
Retrieves a single YouTube video.
vid<String>:: The ID or URL of the video that you'd like to retrieve.
Retrieves an array of standard feed, custom query, or user videos.
If fetching videos for a standard feed:
params<Symbol>:: Accepts a symbol of :top_rated, :top_favorites, :most_viewed,
:most_popular, :most_recent, :most_discussed, :most_linked,
:most_responded, :recently_featured, and :watch_on_mobile.
You can find out more specific information about what each standard feed provides
by visiting: http://code.google.com/apis/youtube/reference.html#Standard_feeds
options<Hash> (optional):: Accepts the options of :time, :page (default is 1),
and :per_page (default is 25). :offset and :max_results
can also be passed for a custom offset.
If fetching videos by tags, categories, query:
params<Hash>:: Accepts the keys :tags, :categories, :query, :order_by,
:author, :racy, :response_format, :video_format, :page (default is 1),
and :per_page(default is 25)
options<Hash>:: Not used. (Optional)
If fetching videos for a particular user:
params<Hash>:: Key of :user with a value of the username. options<Hash>:: Not used. (Optional)