Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

title HubSpot sample
description Simple usage of the HubSpot API
integrations
hubspot
categories
CRM
Samples

HubSpot Sample

Start with AutoKitteh

This AutoKitteh project demonstrates integration with HubSpot.

It sends a couple of requests to the HubSpot API, adds a contact, retrieves deals, and prints the responses back to the user.

API details:

How It Works

  1. Create a new contact in HubSpot with predefined details
  2. Retrieve and list all deals from HubSpot, displaying their IDs and names

Cloud Usage

  1. Initialize your HubSpot connection
  2. Copy the webhook URLs from the "Triggers" tab (see the instructions here)

Trigger Workflow

Important

Ensure the HubSpot connection is properly initialized; otherwise the workflow will raise a ConnectionInitError.

Send HTTP GET and POST requests to the webhook URLs from step 2 in the Cloud Usage section above.

For create_contact_webhook:

curl -i -X POST "${WEBHOOK_URL}" -d email=meow@autokitteh.com \
     -d firstname=Kitty -d lastname=Meowington

For list_deals_webhook:

curl -i "${WEBHOOK_URL}"

Tip

The list_deals workflow can also be triggered manually by clicking the "Run" button in the UI, and setting the list_deals function as the entry point.

Self-Hosted Deployment

Follow these detailed instructions to deploy the project on a self-hosted server.