Platform Registrations API to Hubspot Contact form
Jun 13, 2018 9:19 AM
Looking for some help and guidance please with regards to developing an API from our own platform registrations directly into hubspot contacts
Supporting API documentation: (https://developers.hubspot.com/docs/methods/forms/submit_form?utm_source=hs_email&utm_medium=email&_...)
The documentation outlines PHP code that requires a single source URL for the form input;
'pageUrl' => 'http://www.example.com/form-page', <===== here
'pageName' => 'Example Title'
$hs_context_json = json_encode($hs_context);
//Need to populate these variable with values from the form.
$str_post = "firstname=" . urlencode($firstname)
. "&lastname=" . urlencode($lastname) . "&email=" . urlencode($email) . "&phone=" . urlencode($phonenumber) . "&company=" . urlencode($company) . "&hs_context=" . urlencode($hs_context_json); //Leave this one be
Our current user profile information spans a few URL's. Will we be able to use more than one URL form source per contact API?
Would we need to implement a secondary form for additional information?
If I understand correctly, we would target a form GUID in our hubspot account specifically for this function and then use that form within hubspot to extract what we need?