Sha256: 98c93fe0d0c04b7ec7858c7b590df35ffd8ec9704ac4a4688b288eb0740370ec

Contents?: true

Size: 563 Bytes

Versions: 1

Compression:

Stored size: 563 Bytes

Contents

module YtStreamingApi
  module RApi
    class Message < Request

      def list(part="snippet", max_results=2000, chat_id=nil)
        return nil if chat_id.nil?
        
        @http_verb = 'Get'
        @url = "https://www.googleapis.com/youtube/v3/liveBroadcasts"
        @headers = {"Content-Type" => "application/json", "Authorization" => "#{RApi.authorization}#{@user.youtube_access_token}"}
        @params = "?liveChatId=#{chat_id}&part=#{part}&maxResults=#{max_results}&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/messages.rb