@JoshConley and @AndrewSouthpaw forked from the original repo. The original script uses API keys, which are now deprecated, so we had to tweak the code a bit.
In the portal_property_syncer.py
, near the bottom you'll need to add accessToken
info for both portal1Portal
and portal2Portal
:
For portal1Portal.accessToken
, run this command to grab the key:
$ doppler -p gather-town -c prod_http secrets get PROD_SERVER_HUBSPOT_API_KEY --raw --plain
For portal2Portal.accessToken
, run this command to grab the key:
$ doppler -p gather-town -c dev_http secrets get DEV_SERVER_HUBSPOT_API_KEY --raw --plain
From the repo root, run:
$ pip3 install -r requirements.txt
$ python3 portal_property_syncer.py
Collection of simple tools that allow syncing several HubSpot portal together.
Developed in Mayple.
Sync the properties of contacts, companies, deals and tickets from one portal to another. At the end of execution, it lets you know what manual operations you are required to do. NOTE: right now, this only creates new properties in the target portal, it does update existing properties to be like the source. Set the appropriate API keys and portal IDs to the portals you wish to sync, update the pairs and run it. Fairly simple.
Alon Diamant (advance512)