- Login to oAuth HubSpot apps
- Submit forms via API
- Custom Field for HubSpot Forms (render in Twig or get attributes)
- Get HubSpot contact properties (Have they filled out a form?)
composer require venveo/hubspot-toolbox
- Copy the default config file to your config folder as
hubspot-toolbox.php
- Create an app in your HubSpot developer console with the proper scopes.
- Add the HUBSPOT_PORTAL_ID env value to your
.env
- Configure your app within the hubspot-toolbox.php config file:
<?php return [ 'hubspotPortalId' => getenv('HUBSPOT_PORTAL_ID'), 'defaultApp' => 'some_unique_id', 'apps' => [ 'some_unique_id' => [ 'appName' => 'a name for my app', 'appId' => 000000, 'clientId' => 'probably_put_this_in_your_env', 'clientSecret' => 'probably_put_this_in_your_env', // Update me 'scopes' => ['timeline', 'contacts', 'forms'] ] ] ];
- Enable plugin
- Go to plugin settings, click the login button!
-Insert text here-
Brought to you by Venveo