Sha256: 01292d62062386e0c815fe52b05483f3aa9ca489f9e130f4b3a95086c13d08d3

Contents?: true

Size: 1.96 KB

Versions: 10

Compression:

Stored size: 1.96 KB

Contents

module Vimeo
  module Advanced
    class Album < Vimeo::Advanced::Base

      # Adds a video to an album.
      create_api_method :add_video,
                        "vimeo.albums.addVideo",
                        :required => [:album_id, :video_id]

      # Creates an album.
      create_api_method :create,
                        "vimeo.albums.create",
                        :required => [:title, :video_id],
                        :optional => [:description, :videos]
      
      # Deletes an album.
      create_api_method :delete,
                        "vimeo.albums.delete",
                        :required => [:album_id]
      
      # Returns a list of a user's albums.
      create_api_method :get_all,
                        "vimeo.albums.getAll",
                        :required => [:user_id],
                        :optional => [:page, :per_page, :sort]
      
      # Returns a list of the videos in an album.
      create_api_method :get_videos,
                        "vimeo.albums.getVideos",
                        :required => [:album_id],
                        :optional => [:page, :per_page, :full_response, :password]
      
      # Removes a video from an album.
      create_api_method :remove_video,
                        "vimeo.albums.removeVideo",
                        :required => [:album_id, :video_id]

      # Sets the description of an album.
      create_api_method :set_description,
                        "vimeo.albums.setDescription",
                        :required => [:album_id, :description]
                        
      # Sets the password of an album.
      create_api_method :set_password,
                        "vimeo.albums.setPassword",
                        :required => [:album_id, :password]
      
      # Sets the title of an album.
      create_api_method :set_title,
                        "vimeo.albums.setTitle",
                        :required => [:album_id, :title]

    end # Album
  end # Advanced
end # Vimeo

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
slainer68_vimeo-1.4.4 lib/vimeo/advanced/album.rb
slainer68_vimeo-1.4.3 lib/vimeo/advanced/album.rb
vimeo-1.4.3 lib/vimeo/advanced/album.rb
vimeo-1.4.2 lib/vimeo/advanced/album.rb
vimeo-1.4.1 lib/vimeo/advanced/album.rb
vimeo-1.4.0 lib/vimeo/advanced/album.rb
vimeo-1.3.0 lib/vimeo/advanced/album.rb
vimeo-1.2.2 lib/vimeo/advanced/album.rb
vimeo-1.2.0 lib/vimeo/advanced/album.rb
vimeo-1.1.0 lib/vimeo/advanced/album.rb