Vor Kurzem aufgerufene Suchen
Keine vor kurzem aufgerufene Suchen
Cannot authenticate with cURL
Gepostet 27. Apr. 2022
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 Kommentare
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
Anmelden, um einen Kommentar zu hinterlassen.