Hi all,
I created an API key to read emails that arrive in a mailbox. I am using the API in my curl (or wget) command
if API key is correct, it works fine.
The problem is that if the API key is not correct, the command does not give me an error (example : wrong API key) and the return code is always 0
Can you help me tell me what to change in order to give an error message if the API key is not correct?
curl -d "{}" -H "X-API-Key: xxx https: //xxx/osticket/api/cron.php
echo $?
0
Thanks for your help