https://github.com/fastruby/ombu_labs-hubspot
Source code for OmbuLabs Hubspot integration
https://github.com/fastruby/ombu_labs-hubspot
Last synced: 29 days ago
JSON representation
Source code for OmbuLabs Hubspot integration
- Host: GitHub
- URL: https://github.com/fastruby/ombu_labs-hubspot
- Owner: fastruby
- License: mit
- Created: 2023-01-05T17:01:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-01-28T22:16:00.000Z (3 months ago)
- Last Synced: 2026-04-01T09:32:21.058Z (about 1 month ago)
- Language: Ruby
- Size: 56.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# OmbuLabs::Hubspot
Source code for OmbuLabs Hubspot integration
## Usage
Create a Hubspot client instance:
```ruby
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:
```ruby
gem 'ombu_labs-hubspot'
```
And then execute:
```bash
$ bundle
```
Or install it yourself as:
```bash
$ 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](https://opensource.org/licenses/MIT).