ZenDesk - 任何人都知道如何在 ZenDesk 中进行身份验证 Api

ZenDesk - AnyOne know how to autenticate in ZenDesk Api

我正在尝试使用 Api 令牌连接到 ZenDesk,但我遇到了这个问题:

{
    "error": "Couldn't authenticate you"
}

我正在尝试使用 Basic Auth Postman data for request Api

如果有人知道其他方法,请与我分享!

根据文档,您可以启用密码和电子邮件作为身份验证:https://developer.zendesk.com/documentation/ticketing/getting-started/zendesk-api-quick-start/#preparation

  1. If you don't already have a Zendesk Support account, register to start a free trial at https://www.zendesk.com/register/
  2. In your browser, navigate to your Zendesk account. The url will look something like https://your_subdomain.zendesk.com.
  3. In Admin Center, click the Apps and integrations icon () in the sidebar, then select APIs > Zendesk APIs. Under the Settings tab, make sure Password Access is enabled in the settings. If you don't have permissions to do this, ask an admin to check for you.

还有一些方法可以使用 oauth 或 api 令牌。参见 https://support.zendesk.com/hc/en-us/articles/115000510267-How-can-I-authenticate-API-requests-

If you use an API token, combine your email address and API token to generate the authorization header.
The email address and API token combination need to be a Base-64 encoded string.
The authorization header should be formatted like this:

Authorization: Basic email_address/token:api_token

这是您的 zendesk 站点地址吗?如果不是,请将其更改为..

https://TypeYourSiteHere.zendesk.com/api/v2/tickets.json

您的 zendesk 帐户还需要成为管理员才能使用基本身份验证。