OmbuLabs::Hubspot
Source code for OmbuLabs Hubspot integration
Usage
Create a Hubspot client instance:
module Hubspot
INSTANCE_MUTEX = Mutex.new
def self.client
return @client if defined?(@client) && @client
INSTANCE_MUTEX.synchronize do
@client ||= Hubspot::Client.new(access_token: ENV["HUBSPOT_ACCESS_TOKEN"], auth_names: "oauth2")
end
end
endThen you can use the Hubspot.client to interact with the Hubspot API.
Installation
Add this line to your application's Gemfile:
gem 'ombu_labs-hubspot'And then execute:
$ bundleOr install it yourself as:
$ gem install ombu_labs-hubspotContributing
Contribution directions go here.
License
The gem is available as open source under the terms of the MIT License.