Cannot authenticate with cURL
2022년 4월 27일에 게시됨
I am working through the tutorial here. I am working through "show all tickets" and "show all users". I have already successfully created users and tickets in the browser's terminal (console).
I can log in to my trial/dev Zendesk account with Chrome, but when I attempt to run a cURL command in Mac terminal, I get:
{"error":"Couldn't authenticate you"}
This is the command I'm using, with real credentials which I have verified do work with the regular login process.
curl https://XXXXXX.zendesk.com/api/v2/users.json \
-v -u m----@----.org:xxxxxx
0
2
댓글 2개
Dinesh Korgaokar
Hello Marci,
you can try below CURL command
curl -k "https://<zendesk URL>/api/v2/organizations.json" -H "Content-Type: application/json" -v -u <email>:<password> -X GET
Thanks
0
Eric Nelson
Sorry to hear that you're having issues! Can you just check and make sure that you have api access enabled on your account? This article should help walk you through it.
Thanks!
0
댓글을 남기려면 로그인하세요.