Sha256: 09e2e9bf7df035098ced8a1c1a6027f9643b27280c73e630482fefb391d7b100
Contents?: true
Size: 766 Bytes
Versions: 6
Compression:
Stored size: 766 Bytes
Contents
#!/usr/bin/ruby include REXML module GoogleAppsApi #:nodoc: module CalendarResources class Api < BaseApi attr_reader :token def initialize(*args) begin action_list = { :domain_login => [:post, ":auth:/accounts/ClientLogin"], :retrieve_all_resources => [:get, ":feed_basic:/"], } end options = args.extract_options! domain = options[:domain] options.merge!(:action_hash => action_list, :auth => "https://www.google.com", :feed => "https://apps-apis.google.com", :service => "apps") options[:feed_basic] = options[:feed]+ "/a/feeds/calendar/resource/2.0/#{domain}" super(options) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems