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.
|
||||
* 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
|
||||
===========
|
||||
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/>`_
|
||||
|
||||
Hubspot Python Client
|
||||
---------------------
|
||||
|
||||
The best way to use the Hubspot API appears to be to
|
||||
set up a read-only "Private App".
|
||||
|
||||
|
@ -183,7 +192,7 @@ Set up a Python client thusly:
|
|||
|
||||
.. code-block:: sh
|
||||
|
||||
sudo apt install python3-venv python3-pip
|
||||
sudo apt install python3-venv python3-pip python-is-python3
|
||||
mkdir hubspot-client
|
||||
cd hubspot-client/
|
||||
python -m venv venv
|
||||
|
@ -191,10 +200,17 @@ Set up a Python client thusly:
|
|||
pip install -U setuptools pip wheel
|
||||
pip install hubspot-api-client
|
||||
|
||||
Extract Clients
|
||||
---------------
|
||||
Create a hubspot-extract-clients.py script:
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
Activities Export
|
||||
-----------------
|
||||
Activities appear to be emails and such sent to contacts.
|
||||
These are not in the contacts export.
|
||||
#!/usr/bin/env python
|
||||
from hubspot import HubSpot
|
||||
|
||||
api_client = HubSpot()
|
||||
api_client.access_token = 'access_token'
|
||||
|
||||
all_contacts = api_client.crm.contacts.get_all()
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Libre Developers Documentation 0\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"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language: en\n"
|
||||
|
@ -329,76 +329,88 @@ msgid ""
|
|||
msgstr ""
|
||||
|
||||
#: ../../../_source/hubspot-migration.rst:154
|
||||
msgid "Hubspot API"
|
||||
msgid "Activities Export"
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/hubspot-migration.rst:155
|
||||
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 "
|
||||
"API."
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/hubspot-migration.rst:157
|
||||
#: ../../../_source/hubspot-migration.rst:163
|
||||
msgid "API reference:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/hubspot-migration.rst:159
|
||||
#: ../../../_source/hubspot-migration.rst:165
|
||||
msgid "`<https://developers.hubspot.com/beta-docs/reference/api>`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/hubspot-migration.rst:161
|
||||
#: ../../../_source/hubspot-migration.rst:167
|
||||
msgid "API guide:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/hubspot-migration.rst:163
|
||||
#: ../../../_source/hubspot-migration.rst:169
|
||||
msgid "`<https://developers.hubspot.com/beta-docs/guides/api>`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/hubspot-migration.rst:165
|
||||
#: ../../../_source/hubspot-migration.rst:171
|
||||
msgid "Per Hubspot docs:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/hubspot-migration.rst:167
|
||||
#: ../../../_source/hubspot-migration.rst:173
|
||||
msgid ""
|
||||
"\"Activities on records, such as notes or emails, cannot be exported. To "
|
||||
"retrieve activities, you can export certain activity reports or use the "
|
||||
"engagements API.\""
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/hubspot-migration.rst:171
|
||||
#: ../../../_source/hubspot-migration.rst:177
|
||||
msgid ""
|
||||
"`<https://developers.hubspot.com/beta-docs/guides/api/crm/engagements/"
|
||||
"engagement-details>`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/hubspot-migration.rst:173
|
||||
#: ../../../_source/hubspot-migration.rst:179
|
||||
msgid "Python code for API:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/hubspot-migration.rst:175
|
||||
#: ../../../_source/hubspot-migration.rst:181
|
||||
msgid "`<https://github.com/HubSpot/hubspot-api-python>`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/hubspot-migration.rst:177
|
||||
#: ../../../_source/hubspot-migration.rst:183
|
||||
msgid "`<https://pypi.org/project/hubspot-api-client/>`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/hubspot-migration.rst:179
|
||||
#: ../../../_source/hubspot-migration.rst:186
|
||||
msgid "Hubspot Python Client"
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/hubspot-migration.rst:188
|
||||
msgid ""
|
||||
"The best way to use the Hubspot API appears to be to set up a read-only "
|
||||
"\"Private App\"."
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/hubspot-migration.rst:182
|
||||
#: ../../../_source/hubspot-migration.rst:191
|
||||
msgid "Set up a Python client thusly:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/hubspot-migration.rst:197
|
||||
msgid "Activities Export"
|
||||
#: ../../../_source/hubspot-migration.rst:204
|
||||
msgid "Extract Clients"
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/hubspot-migration.rst:198
|
||||
msgid ""
|
||||
"Activities appear to be emails and such sent to contacts. These are not in "
|
||||
"the contacts export."
|
||||
#: ../../../_source/hubspot-migration.rst:205
|
||||
msgid "Create a hubspot-extract-clients.py script:"
|
||||
msgstr ""
|
||||
|
|
Loading…
Reference in a new issue