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

Version Path
google_apps_api-0.3.2 lib/google_apps_api/calendar_resources.rb
google_apps_api-0.3.1 lib/google_apps_api/calendar_resources.rb
google_apps_api-0.3.0 lib/google_apps_api/calendar_resources.rb
google_apps_api-0.2.2 lib/google_apps_api/calendar_resources.rb
google_apps_api-0.2.1 lib/google_apps_api/calendar_resources.rb
google_apps_api-0.1.0 lib/google_apps_api/calendar_resources.rb