You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
templates_api and events_api seems not being authenticated the same way as other crm APIs.
from hubspot import HubSpot
app_id = '44004400'
api_client = HubSpot(access_token='MY_ACCESS_TOKEN')
custom_event_definition = {
"label": "Viewed Car",
"name": "viewed_car",
"description": "An event that fires when visitor views a car listing in the online inventory",
"primaryObject": "CONTACT",
"propertyDefinitions": [
{
"name": "condition",
"label": "Condition",
"type": "enumeration",
"options": [
{
"label": "New",
"value": "new"
},
{
"label": "Used",
"value": "used"
}
]
}]
}
api_client.crm.timeline.templates_api.create(app_id, custom_event_definition)
It looks like the api is not authenticated, but when using the api_client.crm.contacts by example, it does work.
The text was updated successfully, but these errors were encountered:
matdrapeau
changed the title
Missing documentation to fetch / create templates & events.
Missing documentation to fetch / create templates & events and their APIs are not authenticated
Apr 23, 2024
templates_api
andevents_api
seems not being authenticated the same way as other crm APIs.It looks like the api is not authenticated, but when using the
api_client.crm.contacts
by example, it does work.The text was updated successfully, but these errors were encountered: