首页 > 解决方案 > 我们如何从 API 中检索对讲信使用户/联系人?

问题描述

我有一个与对讲机集成的生产网站,现在我想从 API 中检索这些用户,我是一个访问令牌,遵循此 URL https://developers.intercom.com/building-apps/docs/authentication-types# section-how-to-get-your-access-token 应用程序具有应用程序所有者访问权限。

现在我尝试使用2.x 版的 API https://api.intercom.io/contacts检索用户。也尝试使用 1.x 版本https://api.intercom.io/users但没有获得我的实时用户!

问题 -

  1. 如果我从 API 创建一个用户,那么我可以从 API 中检索它,但在对讲仪表板https://app.intercom.com/a/apps/xyz/users/segments/all-users中看不到它.
  2. 无法从 API 检索仪表板中的用户。

你能建议我在这里做错什么吗?

标签: intercom

解决方案


我犯了一个愚蠢的错误。

API 对讲机的小总结 - 它有 2 个版本 -

  1. 1.x——使用用户的概念
  2. 2.x - 使用联系人概念,在此版本用户中,潜在客户被联系人替换。

当您去创建您的应用程序并获取访问令牌时,请确保您选择了正确的具有应用程序所有者访问权限的令牌。 https://developers.intercom.com/building-apps/docs/authentication-types#section-how-to-get-your-access-token

当您调用 API 时,请选择正确的版本 - https://developers.intercom.com/building-apps/docs/update-your-api-version#section-selecting-the-version-via-the-api-request


推荐阅读