Module: KewegoParty::Client::Video

Included in:
KewegoParty::Client
Defined in:
lib/kewego_party/client/video.rb

Instance Method Summary collapse

Instance Method Details

#video_get_details(sig, full_details = false) ⇒ Hashie::Rash

Information related to a video

Examples:

receive the details from a video (sig)

KewegoParty.video_get_details("some_sig_identifier")

Parameters:

  • sig (String)

    A Kewego video Identifier.

  • full_details (Boolean) (defaults to: false)

    (false) Add thumbnails in response.

Returns:

  • (Hashie::Rash)

    returns the information (metadatas) related to a video.

See Also:



13
14
15
16
17
# File 'lib/kewego_party/client/video.rb', line 13

def video_get_details(sig, full_details = false)
  options = {:sig => sig, :fullDetails => full_details, :appToken  => app_token}
  response = get("/video/getDetails/", options)
  process_response(response, [])
end

#video_get_stats(sig, options = {}) ⇒ Hashie::Rash

Returns the stats of a video.

Examples:

receive the stats from a video (sig)

KewegoParty.video_get_stats("some_sig_identifier")

Parameters:

  • sig (String)

    A Kewego video Identifier.

  • options (Hash) (defaults to: {})

    A customizable set of options.

Options Hash (options):

  • :type (String) — default: day

    . Possible value: day

  • :value (Integer) — default: 15

    . Number of days in result (from current day).

Returns:

  • (Hashie::Rash)

    returns the video stat points

See Also:



29
30
31
32
33
# File 'lib/kewego_party/client/video.rb', line 29

def video_get_stats(sig, options = {})
  options = {:type => 'day', :value => 15, :sig => sig, :appToken  => app_token}.merge options
  response = get("/video/getStats/", options)
  process_response(response, [:stats])
end