Get deal
Tags: #hubspot #crm #sales #deal #naas_drivers #snippet #dataframe
Last update: 2023-04-12 (Created: 2022-02-21)
Description: This notebook provides a comprehensive overview of the HubSpot platform and its features to help you get the best deals.
from naas_drivers import hubspot
import naas
👉 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"
Enter your Deal ID
deal_id = "ENTER_DEAL_ID_HERE" # "70915045"
Enter your Deal properties
List of properties you want to get from deal.
By default, you will get:
- dealname
- amount
- dealstage
- pipeline
- createdate
- closedate
- hs_object_id
- hs_lastmodifieddate
properties = []
deal = hubspot.connect(HS_ACCESS_TOKEN).deals.get(deal_id, properties)
deal
Last modified 1mo ago