mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-07-12 13:29:08 +00:00
hubspot works now
This commit is contained in:
parent
47e3ae16d0
commit
b54c4220f5
4 changed files with 32 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ services:
|
|||
env_file:
|
||||
- ../.db-env
|
||||
volumes:
|
||||
- ..:/workspaces/survey-extractor:cached
|
||||
- ..:/workspaces/survey-extractor
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
|
|
|
|||
6
etl/hubspot_to_deemed_calculator.py
Normal file
6
etl/hubspot_to_deemed_calculator.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import hubspot
|
||||
HUBSPOT_ACCESS_TOKEN = "pat-eu1-064f7f5c-a7d8-4d93-a9b2-b604da6164a6"
|
||||
client = hubspot.Client.create(access_token=HUBSPOT_ACCESS_TOKEN)
|
||||
deals = client.crm.deals.get_all(
|
||||
limit=50,
|
||||
)
|
||||
26
poetry.lock
generated
26
poetry.lock
generated
|
|
@ -1,4 +1,4 @@
|
|||
# This file is automatically @generated by Poetry 2.1.1 and should not be changed by hand.
|
||||
# This file is automatically @generated by Poetry 2.1.2 and should not be changed by hand.
|
||||
|
||||
[[package]]
|
||||
name = "alembic"
|
||||
|
|
@ -560,6 +560,28 @@ files = [
|
|||
docs = ["Sphinx", "furo"]
|
||||
test = ["objgraph", "psutil"]
|
||||
|
||||
[[package]]
|
||||
name = "hubspot-api-client"
|
||||
version = "11.1.0"
|
||||
description = "HubSpot API client"
|
||||
optional = false
|
||||
python-versions = ">=3.7"
|
||||
groups = ["main"]
|
||||
files = [
|
||||
{file = "hubspot_api_client-11.1.0-py3-none-any.whl", hash = "sha256:0c49e2c2f511a56d249c6890d2dfdd62afd04f66edc69a591e8348e28804634b"},
|
||||
{file = "hubspot_api_client-11.1.0.tar.gz", hash = "sha256:93ed914f1cd4dad67bacf26b8a1ec8506847483fa801cb2bddd4b2d887d0f825"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
certifi = ">=2023.1.1"
|
||||
python-dateutil = ">=2.8.2"
|
||||
requests = ">=2.31.0"
|
||||
six = ">=1.10,<2.0"
|
||||
urllib3 = ">=1.15,<3.0"
|
||||
|
||||
[package.extras]
|
||||
dev = ["black", "pytest"]
|
||||
|
||||
[[package]]
|
||||
name = "idna"
|
||||
version = "3.10"
|
||||
|
|
@ -1891,4 +1913,4 @@ files = [
|
|||
[metadata]
|
||||
lock-version = "2.1"
|
||||
python-versions = ">=3.12"
|
||||
content-hash = "09d7eba7676d047eac2f9f91f454617d48ee7b94348cb550941a271d776c1d39"
|
||||
content-hash = "5778c3bdce3109fe21e0ca7861ffc9c738d6af0545e0c27517bbe88c89209082"
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ dependencies = [
|
|||
"pydantic-settings (>=2.8.1,<3.0.0)",
|
||||
"alembic (>=1.15.1,<2.0.0)",
|
||||
"pytest (>=8.3.5,<9.0.0)",
|
||||
"hubspot-api-client (>=11.1.0,<12.0.0)",
|
||||
]
|
||||
|
||||
[tool.poetry]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue