Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions lib/go_to_meeting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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