Skip to content

Repository files navigation

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
end

Then 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:

$ bundle

Or install it yourself as:

$ gem install ombu_labs-hubspot

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.

About

Source code for OmbuLabs Hubspot integration

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages