Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate HTTP request for a Hubspot::Forms object #215

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

velles
Copy link

@velles velles commented Dec 11, 2019

Separate the HTTP request so the caller can optionally use the HTTParty object that is returned.
That way there is access to the HTTPParty request methods
The returned object can retrieve and record the response for compliance/other purpose:

> request = hubspot_form_object.submit_http_request
> request.request # Save this if needed

Separate the  HTTP request so the caller can optionally use the HTTParty object that is returned.
That way there is access to the HTTPParty request methods
The returned object can retrieve and record the response for compliance/other purpose:
=> Ex: |> request = hubspot_form_object.submit_http_request
=>       |> request.request # Save this if neededs
@velles
Copy link
Author

velles commented Dec 11, 2019

This pull request is also related to this one - #173 .
Essentially the same thing with refactored syntax and explanation of the intent.
It's not only for developer use but business compliance when data is sent to HubSpot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant