Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oddcamp/hubspot_informer
A simple Ruby API wrapper for the HubSpot form submission API
https://github.com/oddcamp/hubspot_informer
Last synced: about 2 months ago
JSON representation
A simple Ruby API wrapper for the HubSpot form submission API
- Host: GitHub
- URL: https://github.com/oddcamp/hubspot_informer
- Owner: oddcamp
- License: mit
- Created: 2013-04-09T14:38:23.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-07-20T07:51:34.000Z (over 11 years ago)
- Last Synced: 2024-12-01T06:15:28.452Z (2 months ago)
- Language: Ruby
- Size: 63.5 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request