Pipedrive 凭证
您可以使用这些凭据来验证以下节点:
支持的认证方式
- API令牌
- OAuth2
相关资源
参考 Pipedrive 的开发者文档{:target=_blank .external-link}了解有关该服务的更多信息。
使用API令牌
要配置此凭据,您需要一个 Pipedrive{:target=_blank .external-link} 账户和:
- 一个 API Token
获取您的 API 令牌:
- 打开您的 API Personal Preferences{:target=_blank .external-link}。
- 复制 Your personal API token 并将其输入到您的 n8n 凭据中。
如果您有多个公司,您需要首先选择正确的公司:
- 选择您的账户名称并确保您正在查看正确的公司。
- 然后选择 Company Settings。
- 选择 Personal Preferences。
- 选择 API 标签页。
- 复制 Your personal API token 并将其输入到您的 n8n 凭据中。
参考如何找到 API 令牌{:target=_blank .external-link}了解更多信息。
Using OAuth2
要配置此凭据,您需要一个 Pipedrive 开发者沙盒账户{:target=_blank .external-link}和:
- 一个 Client ID 客户端 ID
- 一个 Client Secret 客户端密钥
要获取两者,您需要注册新应用:
-
在右上角选择您的个人资料名称。 2.找到您的沙箱账户的公司名称,然后选择Developer Hub 开发者中心.
无开发人员中心
如果您在帐户下拉列表中没有看到 开发人员中心,请注册开发人员沙箱帐号.
-
选择 Create an app。
- 选择 Create public app。应用的 Basic info 标签页打开。
- 为您的应用输入 App name,如
n8n integration。 - 从 n8n 复制 OAuth Redirect URL 并将其添加为应用的 Callback URL。
- 选择 Save。应用的 OAuth & access scopes 标签页打开。
- 为您的应用开启适当的 Scopes。参考下面的 Pipedrive 节点作用域和 Pipedrive Trigger 节点作用域了解更多指导。
- 复制 Client ID 并将其输入到您的 n8n 凭据中。
- 复制 Client Secret 并将其输入到您的 n8n 凭据中。
参考注册公共应用{:target=_blank .external-link}了解更多信息。
Pipedrive 节点范围
您添加到应用的作用域取决于您想在 n8n 中使用它进行哪些节点以及您想用这些节点完成什么操作。
Pipedrive 节点可能需要的范围:
| 对象 | 节点操作 | UI 作用域 | 实际作用域 |
|---|---|---|---|
| Activity | Get data of an activity Get data of all activities |
Activities: Read only 或 Activities: Full Access |
activities:read 或 activities:full |
| 活动 | 创建 删除 更新 |
Activities: Full Access 活动:完全访问 | activities:full |
| Deal | Get data of a deal Get data of all deals Search a deal |
Deals: Read only 或 Deals: Full Access |
deals:read 或 deals:full |
| 交易 | 创建 删除 重复 更新 |
Deals: Full Access 优惠:完全访问 | deals:full |
| Deal Activity | Get all activities of a deal | Activities: Read only 或 Activities: Full Access |
activities:read 或 activities:full |
| Deal Product | Get all products in a deal | Products: Read Only 或 Products: Full Access |
products:read 或 products:full |
| File | Download Get data of a file |
参考下面的注释 | 参考下面的注释 |
| File | Create Delete |
参考下面的注释 | 参考下面的注释 |
| Lead | Get data of a lead Get data of all leads |
Leads: Read only 或 Leads: Full access |
leads:read 或 leads:full |
| 铅 | 创建 删除 更新 |
Leads: Full access 线索:完全访问 | leads:full |
| Note | Get data of a note Get data of all notes |
参考下面的注释 | 参考下面的注释 |
| Note | Create Delete Update |
参考下面的注释 | 参考下面的注释 |
| Organization | Get data of an organization Get data of all organizations Search |
Contacts: Read Only 或 Contacts: Full Access |
contacts:read 或 contacts:full |
| 组织 | 创建 删除 更新 |
Contacts: Full Access 联系人:完全访问权限 | contacts:full |
| Person | Get data of a person Get data of all persons Search |
Contacts: Read Only 或 Contacts: Full Access |
contacts:read 或 contacts:full |
| 人 | 创建 删除 更新 |
Contacts: Full Access 联系人:完全访问权限 | contacts:full |
| 产品 | 获取所有产品数据 | Products: Read Only 产品:只读 | products:read |
提示
Files and Notes 文件和注释
文件和注释的范围取决于它们所涉及的对象:
- Files 与 Deals、Activities 或 Contacts 相关。
- Notes 与 Deals 或 Contacts 相关。
请参阅这些对象的范围。
Pipedrive 节点还支持自定义 API 调用。为您打算进行的任何自定义 API 调用添加相关作用域。
参考作用域和权限说明{:target=_blank .external-link}了解更多信息。
Pipedrive 触发节点范围
Pipedrive 触发器 节点需要 Webhooks: Full access Webhooks:完全访问权限 (webhooks:full) 范围。