From 8a4600bea5e0556cf48663b3243a1d49040f41dd Mon Sep 17 00:00:00 2001 From: Mark Hunt Date: Thu, 31 Aug 2017 16:54:43 -0400 Subject: [PATCH] Update base URI Updating base URI to https://api.getgo.com/ as required before the deadline. --- lib/go_to_meeting.rb | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) 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