diff --git a/lib/go_to_meeting.rb b/lib/go_to_meeting.rb index f44965b..40b5fc2 100644 --- a/lib/go_to_meeting.rb +++ b/lib/go_to_meeting.rb @@ -7,37 +7,37 @@ require 'multi_json' module GoToMeeting - + class Client - + include HTTParty format :json - + include GoToMeeting::Attendees include GoToMeeting::Groups include GoToMeeting::Meetings include GoToMeeting::Organizers - + attr_accessor :access_token - + def initialize(access_token = nil, extra_params = {}) - - # the access token from oauth + + # the access token from oauth @access_token = access_token - + @default_params = { - :base_uri => "https://api.citrixonline.com/G2M/rest", + :base_uri => "https://api.getgo.com/G2M/rest", :headers => { "Content-type" => "application/json", "Accept" => "application/json", - "Authorization" => "OAuth oauth_token=#{@access_token}" + "Authorization" => "OAuth oauth_token=#{@access_token}" } } - + @default_params = @default_params.merge(extra_params).freeze self.class.default_options = self.class.default_options.merge(@default_params).freeze end - + end - + end