Sha256: 2c9167486649a2010bde3551ec680b78ef92890333ff97df45a67f6eb0fda1fc
Contents?: true
Size: 1.36 KB
Versions: 1
Compression:
Stored size: 1.36 KB
Contents
# encoding: utf-8 module RViki class ClientV1 include Routable base_uri 'http://www.viki.com/api/v1' headers "Content-Type" => "application/json", "User-Agent" => "VikiMobile/4.0 RViki::Client" format :json route_get "/shows.json", as: :shows route_get "/shows/:id.json", as: :shows_item end class ClientV2 include Routable base_uri 'http://www.viki.com/api/v2' headers "Content-Type" => "application/json", "User-Agent" => "VikiMobile/4.0 RViki::Client" format :json route_get "/shows.json", as: :shows route_get "/shows/:id.json", as: :shows_item route_get "/featured.json", as: :featured route_get "/news.json", as: :news route_get "/channels.json", as: :channels route_get "/channels/:id.json", as: :channels_item route_get "/channel/:id/videos.json", as: :channel_videos route_get "/posts.json", as: :posts route_get "/videos.json", as: :videos route_get "/videos/:id/casts.json", as: :video_casts route_get "/videos/:id/parts.json", as: :video_parts route_get "/videos/:id/recommended.json", as: :video_posts end class ClientV3 include Routable base_uri 'http://www.viki.com/api/v3' headers "Content-Type" => "application/json", "User-Agent" => "VikiMobile/4.0 RViki::Client" format :json route_get "/custom.json", as: :custom end Client = ClientV2 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rviki-0.0.2 | lib/rviki/client.rb |