Hubspot python stubs
This commit is contained in:
parent
303dc5214f
commit
c86e62b867
|
@ -150,6 +150,12 @@ Go to Automations --> Workflows, click the "Actions" button, then
|
||||||
* Send to: Email address of logged in Hubspot user.
|
* Send to: Email address of logged in Hubspot user.
|
||||||
* Choose what you'd like to export: All available workflow dashboard data.
|
* Choose what you'd like to export: All available workflow dashboard data.
|
||||||
|
|
||||||
|
Activities Export
|
||||||
|
-----------------
|
||||||
|
Activities appear to be emails and such sent to contacts.
|
||||||
|
These are not in the contacts export.
|
||||||
|
|
||||||
|
|
||||||
Hubspot API
|
Hubspot API
|
||||||
===========
|
===========
|
||||||
Some data in Hubspot cannot be exported, it needs to be retrieved via the API.
|
Some data in Hubspot cannot be exported, it needs to be retrieved via the API.
|
||||||
|
@ -176,6 +182,9 @@ Python code for API:
|
||||||
|
|
||||||
`<https://pypi.org/project/hubspot-api-client/>`_
|
`<https://pypi.org/project/hubspot-api-client/>`_
|
||||||
|
|
||||||
|
Hubspot Python Client
|
||||||
|
---------------------
|
||||||
|
|
||||||
The best way to use the Hubspot API appears to be to
|
The best way to use the Hubspot API appears to be to
|
||||||
set up a read-only "Private App".
|
set up a read-only "Private App".
|
||||||
|
|
||||||
|
@ -183,7 +192,7 @@ Set up a Python client thusly:
|
||||||
|
|
||||||
.. code-block:: sh
|
.. code-block:: sh
|
||||||
|
|
||||||
sudo apt install python3-venv python3-pip
|
sudo apt install python3-venv python3-pip python-is-python3
|
||||||
mkdir hubspot-client
|
mkdir hubspot-client
|
||||||
cd hubspot-client/
|
cd hubspot-client/
|
||||||
python -m venv venv
|
python -m venv venv
|
||||||
|
@ -191,10 +200,17 @@ Set up a Python client thusly:
|
||||||
pip install -U setuptools pip wheel
|
pip install -U setuptools pip wheel
|
||||||
pip install hubspot-api-client
|
pip install hubspot-api-client
|
||||||
|
|
||||||
|
Extract Clients
|
||||||
|
---------------
|
||||||
|
Create a hubspot-extract-clients.py script:
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
Activities Export
|
#!/usr/bin/env python
|
||||||
-----------------
|
from hubspot import HubSpot
|
||||||
Activities appear to be emails and such sent to contacts.
|
|
||||||
These are not in the contacts export.
|
api_client = HubSpot()
|
||||||
|
api_client.access_token = 'access_token'
|
||||||
|
|
||||||
|
all_contacts = api_client.crm.contacts.get_all()
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Libre Developers Documentation 0\n"
|
"Project-Id-Version: Libre Developers Documentation 0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2024-09-19 10:37-0600\n"
|
"POT-Creation-Date: 2024-09-19 10:44-0600\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language: en\n"
|
"Language: en\n"
|
||||||
|
@ -329,76 +329,88 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/hubspot-migration.rst:154
|
#: ../../../_source/hubspot-migration.rst:154
|
||||||
msgid "Hubspot API"
|
msgid "Activities Export"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/hubspot-migration.rst:155
|
#: ../../../_source/hubspot-migration.rst:155
|
||||||
msgid ""
|
msgid ""
|
||||||
|
"Activities appear to be emails and such sent to contacts. These are not in "
|
||||||
|
"the contacts export."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../../../_source/hubspot-migration.rst:160
|
||||||
|
msgid "Hubspot API"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../../../_source/hubspot-migration.rst:161
|
||||||
|
msgid ""
|
||||||
"Some data in Hubspot cannot be exported, it needs to be retrieved via the "
|
"Some data in Hubspot cannot be exported, it needs to be retrieved via the "
|
||||||
"API."
|
"API."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/hubspot-migration.rst:157
|
#: ../../../_source/hubspot-migration.rst:163
|
||||||
msgid "API reference:"
|
msgid "API reference:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/hubspot-migration.rst:159
|
#: ../../../_source/hubspot-migration.rst:165
|
||||||
msgid "`<https://developers.hubspot.com/beta-docs/reference/api>`_"
|
msgid "`<https://developers.hubspot.com/beta-docs/reference/api>`_"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/hubspot-migration.rst:161
|
#: ../../../_source/hubspot-migration.rst:167
|
||||||
msgid "API guide:"
|
msgid "API guide:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/hubspot-migration.rst:163
|
#: ../../../_source/hubspot-migration.rst:169
|
||||||
msgid "`<https://developers.hubspot.com/beta-docs/guides/api>`_"
|
msgid "`<https://developers.hubspot.com/beta-docs/guides/api>`_"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/hubspot-migration.rst:165
|
#: ../../../_source/hubspot-migration.rst:171
|
||||||
msgid "Per Hubspot docs:"
|
msgid "Per Hubspot docs:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/hubspot-migration.rst:167
|
#: ../../../_source/hubspot-migration.rst:173
|
||||||
msgid ""
|
msgid ""
|
||||||
"\"Activities on records, such as notes or emails, cannot be exported. To "
|
"\"Activities on records, such as notes or emails, cannot be exported. To "
|
||||||
"retrieve activities, you can export certain activity reports or use the "
|
"retrieve activities, you can export certain activity reports or use the "
|
||||||
"engagements API.\""
|
"engagements API.\""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/hubspot-migration.rst:171
|
#: ../../../_source/hubspot-migration.rst:177
|
||||||
msgid ""
|
msgid ""
|
||||||
"`<https://developers.hubspot.com/beta-docs/guides/api/crm/engagements/"
|
"`<https://developers.hubspot.com/beta-docs/guides/api/crm/engagements/"
|
||||||
"engagement-details>`_"
|
"engagement-details>`_"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/hubspot-migration.rst:173
|
#: ../../../_source/hubspot-migration.rst:179
|
||||||
msgid "Python code for API:"
|
msgid "Python code for API:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/hubspot-migration.rst:175
|
#: ../../../_source/hubspot-migration.rst:181
|
||||||
msgid "`<https://github.com/HubSpot/hubspot-api-python>`_"
|
msgid "`<https://github.com/HubSpot/hubspot-api-python>`_"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/hubspot-migration.rst:177
|
#: ../../../_source/hubspot-migration.rst:183
|
||||||
msgid "`<https://pypi.org/project/hubspot-api-client/>`_"
|
msgid "`<https://pypi.org/project/hubspot-api-client/>`_"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/hubspot-migration.rst:179
|
#: ../../../_source/hubspot-migration.rst:186
|
||||||
|
msgid "Hubspot Python Client"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../../../_source/hubspot-migration.rst:188
|
||||||
msgid ""
|
msgid ""
|
||||||
"The best way to use the Hubspot API appears to be to set up a read-only "
|
"The best way to use the Hubspot API appears to be to set up a read-only "
|
||||||
"\"Private App\"."
|
"\"Private App\"."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/hubspot-migration.rst:182
|
#: ../../../_source/hubspot-migration.rst:191
|
||||||
msgid "Set up a Python client thusly:"
|
msgid "Set up a Python client thusly:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/hubspot-migration.rst:197
|
#: ../../../_source/hubspot-migration.rst:204
|
||||||
msgid "Activities Export"
|
msgid "Extract Clients"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/hubspot-migration.rst:198
|
#: ../../../_source/hubspot-migration.rst:205
|
||||||
msgid ""
|
msgid "Create a hubspot-extract-clients.py script:"
|
||||||
"Activities appear to be emails and such sent to contacts. These are not in "
|
|
||||||
"the contacts export."
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
Loading…
Reference in a new issue