Consuming Chat Api - basic auth doen't working -chat only account
I have a chat only account using gude.swathi@gmail.com under https://vintec.zendesk.com/
I’m trying to Implement an OAuth authorization flow using Client credentials type by following document : https://developer.zendesk.com/rest_api/docs/chat/auth#confidential-grant-types to make use of chat api
according to above document first I need to set client_type to "confidential" with the Update Client endpoint.
But to update Client , I need to get Clients using basic auth which always gives me ‘Unauthorized’ error.
curl https://www.zopim.com/api/v2/oauth/clients \
-v -u {email_address}:{password}
I have even tried calling Client credentials grant type directly by skipping above step which gives me error “invalid grant type”
curl https://www.zopim.com/oauth2/token \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'grant_type=client_credentials&client_id={your_client_id}&client_secret={your_client_secret}' \ -X POST
Please help me or suggest any direction .
Iniciar sesión para dejar un comentario.
0 Comentarios