SplashYou.rb
def video_info_by_id(service, part, **params)
  params = params.delete_if { |p, v| v == ''}
  response = service.list_videos(part, params).to_json
  JSON.parse(response).fetch("items")[0]
end
# video information by id from YouTube api
video information by id from YouTube api
video information by id from YouTube api
def video_info_by_id(service, part, **params)
  params = params.delete_if { |p, v| v == ''}
  response = service.list_videos(part, params).to_json
  JSON.parse(response).fetch("items")[0]
end
def video_info_by_id ( service , part , ** params ) params = params . delete_if { | p , v | v == '' } response = service . list_videos ( part , params ) . to_json JSON . parse ( response ) . fetch ( "items" ) [ 0 ] end
video information by id from YouTube api
video information by id from YouTube api
service
part
params