Module: KewegoParty::Client::Channel
- Included in:
- KewegoParty::Client
- Defined in:
- lib/kewego_party/client/channel.rb
Instance Method Summary collapse
- #channel_get_details(csig, options = {}) ⇒ Object
-
#channel_get_player_code(csig, language_code = "es", options = {}) ⇒ String
Allows you to get the embedded code of a channel from the channel identifier (CSIG).
-
#channel_get_thumbnail(csig, options = {}) ⇒ String
Thumbnail for a video.
- #channel_get_videos(csig, options = {}) ⇒ Object
Instance Method Details
#channel_get_details(csig, options = {}) ⇒ Object
11 12 13 14 15 |
# File 'lib/kewego_party/client/channel.rb', line 11 def channel_get_details(csig, = {}) = {:csig => csig, :appToken => app_token}.merge response = get('/channel/getDetails/', ) process_response(response, [:channel]) end |
#channel_get_player_code(csig, language_code = "es", options = {}) ⇒ String
Allows you to get the embedded code of a channel from the channel identifier (CSIG).
48 49 50 51 52 53 54 |
# File 'lib/kewego_party/client/channel.rb', line 48 def channel_get_player_code(csig, language_code = "es", = {}) = {:csig => csig, :appToken => app_token, :language_code => language_code} = .merge response = get('/channel/getPlayerCode/', ) process_response(response, [:blog]) end |
#channel_get_thumbnail(csig, options = {}) ⇒ String
Thumbnail for a video
28 29 30 31 |
# File 'lib/kewego_party/client/channel.rb', line 28 def channel_get_thumbnail(csig, = {}) = {:csig => csig, :appToken => app_token}.merge get("/channel/getThumbnail/", ) end |
#channel_get_videos(csig, options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/kewego_party/client/channel.rb', line 5 def channel_get_videos(csig, = {}) = {:csig => csig, :appToken => app_token}.merge response = get('/channel/getVideos/', ) process_response(response, []) end |