# File lib/gdata/client/youtube.rb, line 27 def initialize(options = {}) options[:clientlogin_service] ||= 'youtube' options[:clientlogin_url] ||= 'https://www.google.com/youtube/accounts/ClientLogin' options[:authsub_scope] ||= 'http://gdata.youtube.com' options[:version] ||= '2' super(options) end
Custom prepare_headers to include the developer key and clientID
# File lib/gdata/client/youtube.rb, line 36 def prepare_headers if @client_id @headers['X-GData-Client'] = @client_id end if @developer_key @headers['X-GData-Key'] = "key=#{@developer_key}" end super end
Generated with the Darkfish Rdoc Generator 2.