Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

venveo/craft-hubspot-toolbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HubSpot Toolbox plugin for Craft CMS 3.x

Features

  • 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?)

Installation

    composer require venveo/hubspot-toolbox

Configuring HubSpot Toolbox

  1. Copy the default config file to your config folder as hubspot-toolbox.php
  2. Create an app in your HubSpot developer console with the proper scopes.
  3. Add the HUBSPOT_PORTAL_ID env value to your .env
  4. 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']
            ]
        ]
    ];
  5. Enable plugin
  6. Go to plugin settings, click the login button!

Using HubSpot Toolbox

-Insert text here-

HubSpot Toolbox Roadmap

Brought to you by Venveo