lib/vimeo/advanced/channel.rb in vimeo-1.0.0 vs lib/vimeo/advanced/channel.rb in vimeo-1.1.0
- old
+ new
@@ -3,23 +3,21 @@
class Channel < Vimeo::Advanced::Base
# Adds a video to a channel.
create_api_method :add_video,
"vimeo.channels.addVideo",
- :required => [:auth_token, :channel_id, :video_id]
+ :required => [:channel_id, :video_id]
# Returns a list of all channels.
create_api_method :get_all,
"vimeo.channels.getAll",
- :optional => [:page, :per_page, :sort]
+ :optional => [:page, :per_page, :sort, :user_id]
# Returns information about a channel.
- # FIXME: Do we need page and per_page here?
create_api_method :get_info,
"vimeo.channels.getInfo",
- :required => [:channel_id],
- :optional => [:page, :per_page]
+ :required => [:channel_id]
# Returns a list of the moderators of a channel.
create_api_method :get_moderators,
"vimeo.channels.getModerators",
:required => [:channel_id],
@@ -30,29 +28,28 @@
"vimeo.channels.getSubscribers",
:required => [:channel_id],
:optional => [:page, :per_page]
# Returns a list of the videos in a channel.
- # FIXME: Should there be a sort option here?
create_api_method :get_videos,
"vimeo.channels.getVideos",
:required => [:channel_id],
:optional => [:page, :per_page, :full_response]
# Removes a video from a channel.
create_api_method :remove_video,
"vimeo.channels.removeVideo",
- :required => [:auth_token, :channel_id, :video_id]
+ :required => [:channel_id, :video_id]
# Subscribes to a channel
create_api_method :subscribe,
"vimeo.channels.subscribe",
- :required => [:auth_token, :channel_id]
+ :required => [:channel_id]
# Unsubscribes from a channel
create_api_method :unsubscribe,
"vimeo.channels.unsubscribe",
- :required => [:auth_token, :channel_id]
+ :required => [:channel_id]
end # Channel
end # Advanced
end # Vimeo
\ No newline at end of file