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

Marketing API: Forms support #46

Closed
gmpf opened this issue May 8, 2021 · 8 comments
Closed

Marketing API: Forms support #46

gmpf opened this issue May 8, 2021 · 8 comments

Comments

@gmpf
Copy link

gmpf commented May 8, 2021

Hey, I'm basically looking for this client's equivalent of the v2 API client's form retrieval. In the v2 API client, I suppose it would be something like this:

$form = $hubspot->forms()->geById(MY_FORM_ID);

This v3 API client implementation does not seem to support forms (yet?), i. e. there is no abstraction here for a v3 API call like this:

curl --request GET \
  --url 'https://api.hubapi.com/marketing/v3/forms/formId?hapikey=YOUR_HUBSPOT_API_KEY'

Is that correct or am I just looking in the wrong place?

@robertodormepoco
Copy link

+1 Basically the marketing API is completely missing as far as i can see

@ksvirkou-hubspot
Copy link
Collaborator

ksvirkou-hubspot commented May 12, 2021

Hi everyone.
Form API is currently under development.
As soon as it is ready we will publish it.
https://developers.hubspot.com/docs/api/marketing/forms

@gmpf
Copy link
Author

gmpf commented May 14, 2021

@ksvirkou-hubspot Thank you for confirming, I'll use the v2 API for now then.

@hitty
Copy link

hitty commented Oct 7, 2022

Hi, @ksvirkou-hubspot
I understand correctly that there are no forms yet in API version 3?

@ksvirkou-hubspot
Copy link
Collaborator

Hi, @ksvirkou-hubspot I understand correctly that there are no forms yet in API version 3?

You understand correctly
Still no Form API v3

@apeisa
Copy link

apeisa commented Oct 25, 2022

What is the latest API for form entry submit? This one has v3 and "legacy" both in the url: https://legacydocs.hubspot.com/docs/methods/forms/submit_form_v3_authentication

Is it what one should use if the need is to submit form entries?

@CBRPLX
Copy link

CBRPLX commented Oct 27, 2022

@apeisa Even if it's not supported yet, I use the v3 client, but with the "no wrapped endpoint" feature as follows :

$response = $hubspot->apiRequest([
    'method' => 'POST',
    'baseUrl' => 'https://api.hsforms.com',
    'path' => "/submissions/v3/integration/submit/$hubspotPortalId/$hubspotFormGuid",
    'body' => [
        "fields" => $fieldsValues,
        "context" => $contextValues,
    ],
]);

This way I'm ready when the submit will be available with client.

Hope it helps you

This was referenced Nov 17, 2023
@ksvirkou-hubspot
Copy link
Collaborator

Hi everyone.
I've just published forms API in version 10.2.0.
But this API doesn't contain all necessary methods.
if there is no necessary method in the SDK use $hubspot->apiRequest().
You can check all available SDK's methods in the docs.

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

No branches or pull requests

6 participants