Class YouTubeG::Client
In: lib/youtube_g/client.rb
Parent: Object

Methods

new   video_by   videos_by  

Public Class methods

Public Instance methods

Retrieves a single YouTube video.

Parameters

  vid<String>:: The ID or URL of the video that you'd like to retrieve.

Returns

YouTubeG::Model::Video

Retrieves an array of standard feed, custom query, or user videos.

Parameters

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)

Returns

YouTubeG::Response::VideoSearch

[Validate]