Ricerche recenti
Nessuna ricerca recente
Zendesk chat rest API authentication
Con risposta
Data ultimo post: 19 nov 2021
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 commenti
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
Accedi per lasciare un commento.