Retrieve data about a specific chat
Hello,
Can someone please help me with the following I'm trying to retrieve the data from a specific chat using curl.
I used the following code in my cmd box with Windows.
curl https://www.mydomain.com/api/v2/chats/{Specific chat ID} ^
-v -u {email_address}:{password}
I'm trying to determine if an agent or customer ended the chat.
Thank you.
Anton
-
Hello,
I now see you have use a different endpoint for chat as shown below.
curl https://www.zopim.com/api/v2/chats/{chat_id} \ -v -u {email_address}:{password}
This still does not work. It looks like a specific type of token has to be created to do this.
Is there a quick way to do this on the postman app?
Kind Regards,
Anton -
This is a bit of a guess but was the chat account created in Support? If so, you need to use Oauth instead:
https://developer.zendesk.com/rest_api/docs/chat/introduction#security-and-authentication
-
Hi Phil,
Thank you for the reply. I just found out last night that Oauth is required.
I though it be easier than having to set this up.
Thank you.
Kind Regards,
Anton
-
No problem. I didn't know myself until I saw that I must admit.
Most of the other API functions are accessible via the API token but it does look like Chat is slightly different.
-
Thanks anyway.
I know how to do it now if I need it again in the future.
Kind Regards,
Anton
-
No worries, glad you got it sorted...
Please sign in to leave a comment.
6 Comments