Sha256: f68f284e99dd8c52e5efe72de086219fd82504589ef8554337436e3be96379a5

Contents?: true

Size: 518 Bytes

Versions: 1

Compression:

Stored size: 518 Bytes

Contents

module YtStreamingApi
  module RApi
    class Broadcast < Request

      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

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
YTStreamingAPI-0.0.1 lib/yt_streaming_api/r_api/broadcast.rb