Sha256: 236c769b9186c34ed227a6353aac8164a92cafe0823817e3a52da9d415bfa906
Contents?: true
Size: 1.04 KB
Versions: 4
Compression:
Stored size: 1.04 KB
Contents
require "groovehq/client/connection" require "groovehq/client/agents" require "groovehq/client/customers" require "groovehq/client/folders" require "groovehq/client/groups" require "groovehq/client/mailboxes" require "groovehq/client/attachments" require "groovehq/client/messages" require "groovehq/client/tickets" require "groovehq/client/webhooks" module GrooveHQ class Client include HTTParty include GrooveHQ::Client::Connection include GrooveHQ::Client::Agents include GrooveHQ::Client::Customers include GrooveHQ::Client::Folders include GrooveHQ::Client::Groups include GrooveHQ::Client::Mailboxes include GrooveHQ::Client::Attachments include GrooveHQ::Client::Messages include GrooveHQ::Client::Tickets include GrooveHQ::Client::Webhooks base_uri "https://api.groovehq.com/v1" format :json def initialize(access_token = nil) access_token ||= ENV["GROOVEHQ_ACCESS_TOKEN"] self.class.default_options.merge!(headers: { 'Authorization' => "Bearer #{access_token}" }) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
groovehq-1.0.7 | lib/groovehq/client.rb |
groovehq-1.0.6 | lib/groovehq/client.rb |
groovehq-1.0.5 | lib/groovehq/client.rb |
groovehq-1.0.4 | lib/groovehq/client.rb |