HubSpot Informer for Ruby
A simple API wrapper for HubSpot form submission API.
Usage
In Rails
hubspot = HubspotInformer.new(
# These are mandatory
portal_id: 1234,
form_guid: 567890,
# These are optional
request_ip: request.remote_ip,
hutk: cookies[:hutk],
page_url: "#{request.protocol}#{request.host_with_port}#{request.fullpath}"
page_title: @title
)
hubspot.submit params
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request