简体   繁体   English

如何将 HubSpot 数据自动集成到 MySQL 数据库中?

[英]How do I integrate HubSpot data into a MySQL database automatically?

I have a HubSpot account where my team updates my customers' details in three sheets such as Contacts, activities etc. Now I want to integrate the data available in these sheets to my MySQL database.我有一个 HubSpot 帐户,我的团队在其中更新我的客户在三张表中的详细信息,例如联系人、活动等。现在我想将这些表中的可用数据集成到我的 MySQL 数据库中。

I want the changes done in the HubSpot sheets to be automatically transferred to my MySQL database.我希望 HubSpot 表中所做的更改自动传输到我的 MySQL 数据库。

Is there any way to do so?有什么办法吗?

Unfortunately, there is no any direct connector between HubSpot and MySQL out of the box.不幸的是,HubSpot 和 MySQL 之间没有任何开箱即用的直接连接器。 You have to create all the relevant tables yourself in your MySQL database and then populate them with the desired data via HubSpot APIs, for instance , use https://legacydocs.hubspot.com/docs/methods/lists/get_lists to retrieve all contact lists.您必须自己在 MySQL 数据库中创建所有相关表,然后通过 HubSpot API 使用所需数据填充它们,例如,使用https://legacydocs.hubspot.com/docs/methods/lists/get_lists检索所有联系人列表。

Alternatively, you can look at some commercial solutions such as Zapier , Skyvia , Hull etc.或者,您可以查看一些商业解决方案,例如ZapierSkyviaHull等。

For example, configuration of a Zapier connector is straight forward:例如,Zapier 连接器的配置很简单:

  1. Sign up for free here , it will give you a chance to explore Zapier features within 2 weeks; 在此处免费注册,将有机会在 2 周内探索 Zapier 功能;
  2. Authenticate MySQL in Zapier -> MyApps -> Connect a new account (select MySQL) to allow Zapier to access your MySQL account;Zapier -> MyApps -> Connect a new account (选择 MySQL)中验证 MySQL 以允许 Zapier 访问您的 MySQL 帐户;
  3. Authenticate HubSpot similar to the above step for MySQL;针对 MySQL 对 HubSpot 进行类似于上述步骤的身份验证;
  4. Pick up HubSpot app as a trigger to kick off your data sync, for example, "Contact Recently Created or Updated";选择 HubSpot 应用程序作为启动数据同步的触发器,例如“联系人最近创建或更新”;
  5. Choose a resulting action from the MySQL app, for example, "Update Row";从 MySQL 应用程序中选择结果操作,例如“更新行”;
  6. Select the data you want to send from HubSpot to MySQL; Select 要从 HubSpot 发送到 MySQL 的数据;
  7. That is all, enjoy!仅此而已,尽情享受吧!

You can trial Zapier for 2 weeks, it should be enough to validate the integration aspect before signing up for a certain commercial plan;您可以试用Zapier 2 周,在注册某个商业计划之前验证集成方面应该足够了; once logged in to Zapier you can see all available plans here .登录 Zapier 后,您可以在此处查看所有可用计划。

Sequin recently launched a HubSpot/Postgres integration along the lines you're describing. Sequin 最近按照您所描述的方式推出了 HubSpot/Postgres 集成。 There's a technical writeup describing how it works, which should be cross-applicable to MySQL.一篇技术文章描述了它是如何工作的,它应该交叉适用于 MySQL。

The API strategy: API 策略:

  1. Use list endpoints to establish a base state in SQL.使用列表端点在 SQL 中建立基础 state。
  2. Use /search endpoints and a stored cursor: fetch new changes and apply them to the base state.使用/search端点和存储的 cursor:获取新更改并将它们应用到基础 state。

I wrote a longer post on why we don't use the Webhooks API for this .我写了一篇关于为什么我们不为此使用 Webhooks API的较长文章。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM