Links

Get all pipelines and dealstages

Tags: #hubspot #crm #sales #deal #pipelines #naas_drivers #snippet #dataframe
Author: Florent Ravenel​
Description: This notebook get all your pipelines and dealstages.

Input

Import libraries

from naas_drivers import hubspot
import naas

Setup HubSpot

👉 Starting November 30, 2022, HubSpot API keys no longer enable access to HubSpot APIs, so in Naas version 2.8.3 and above, you need create a private app and use the access token.
Enter Your Access Token
HS_ACCESS_TOKEN = naas.secret.get("HS_ACCESS_TOKEN") or "YOUR_HS_ACCESS_TOKEN"

Model

Get pipelines and dealstages

df_pipelines = hubspot.connect(HS_ACCESS_TOKEN).pipelines.get_all()

Output

Display result

df_pipelines