gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 16:06:08 26 4
gpt4 key购买 nike

我正在尝试使用 Api token 连接到 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.

enable zendesk password and email auth

还有一些方法可以使用 oauth 或 api token 。参见 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

关于python - ZenDesk - 任何人都知道如何在 ZenDesk Api 中进行身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69343685/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com