Zendesk chat rest API authentication
답변함
2021년 11월 19일에 게시됨
I'm trying to use the chat rest API referenced at https://developer.zendesk.com/api-reference/live-chat/introduction/. I am having trouble authenticating.
Using OAuth2
I get the result
{"error":"InternalError","description":"Internal Server Error"}
Trying basic authentication using the credentials I log into chat with
curl -u xxx:xxx https://www.zopim.com/api/v2/agents/me
returns
{
"error": "Unauthorized",
"description": "The server could not verify that you are authorized to access the requested resource"
}
I am using a trial account if that makes any difference. I did create a brand new trial account with an email not associated with any Zendesk support instance to see if that would make any difference and the results are the same. Both accounts I have made have a subdomain under zendesk, I don't know if that means anything.
Thank you
Robert Porter
Any help would be appreciated.
1
4
댓글 4개
rakib jawed
were you able to authenticate your api call via basic auth, I am not able to authenticate zendesk chat api with basic auth.
Thanks
Rakib
0
Christopher Kennedy
Best,
0
Robert Porter
Hi Christopher, Thank you for your help.
I discovered my problem is that the URL I was using had a different casing for the word "callback" other than the one registered. This confused me because I know I've been sloppy with that before with other APIs and didn't think it mattered, but according to the oauth2 standard (Section 6.2.3) this is correct behavior. So the problem was me =).
1
Christopher Kennedy
For your request to the authorization page (
https://www.zopim.com/oauth2/authorizations/new
), can you URL-encode the URL parameters and try again?Thanks,
1
댓글을 남기려면 로그인하세요.