Friday, October 27, 2017

SetCronJob API request now supports JSON

Hello there,

From now on you can send API request via POST with parameters in query string format or JSON format.

Query string format:
curl -d 'token=******'  https://www.setcronjob.com/api/cron.list

JSON format:
curl -d '{"token":"******"}'  https://www.setcronjob.com/api/cron.list

We also update our cronjob execution results data structure. In short, we moved most data into cronlog.result including startTime, executionTime, status, etc. For backward compatibility, you can still access those values at the moment, but it will be removed within 3 months. You'd better update your script to reflex those changes if any.