class YtStreamingApi::RApi::Broadcast

Public Instance Methods

list(part="snippet", status="active", type="all") click to toggle source
# File lib/yt_streaming_api/r_api/broadcast.rb, line 5
def list(part="snippet", status="active", type="all")
  @http_verb = 'Get'
  @url = "https://www.googleapis.com/youtube/v3/liveBroadcasts"
  @headers = {"Content-Type" => "application/json", "Authorization" => "#{RApi.authorization}#{@user.youtube_access_token}"}
  @params = "?part=#{part}&broadcastStatus=#{status}&broadcastType=#{type}&key=#{RApi.api_key}"

  http
  @response
end