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
https://www.zopim.com/oauth2/authorizations/new?client_id=qYcZqmHuTnc283mKW9LiBlIsOaCBnAUAioNZuNvgPoDvIRV3iW&response_type=code&scope=read&subdomain=eonesolutionssupport&redirect_uri=https://eoneconnectorauth.azurewebsites.net/Callback
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.
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,