Specify JSON output format and callback function name on "ticket" request

Specify JSON output format and callback function name on "ticket" request

In the API, when requesting a "ticket", it would be really useful to me if I could specify JSON as the output format and a callback function name.

Currently, the "ticket" request takes the format:

https://accounts.zoho.com/login?servicename=ZohoReports&FROM_AGENT=true&LOGIN_ID=zohoUserID&PASSWORD=zohoUserPassword

And the response takes the format:

# #ddd mm dd hh:mm:ss PST yyyy GETUSERNAME=null WARNING=null PASS_EXPIRY=-1 TICKET=abc123xyz RESULT=TRUE

Ideally, the "ticket" request would take the format:

https://accounts.zoho.com/login?servicename=ZohoReports&FROM_AGENT=true&LOGIN_ID=zohoUserID&PASSWORD=zohoUserPassword&ZOHO_OUTPUT_FORMAT=JSON&ZOHO_CALLBACK_FUNCTION=myFunction

And the response would take the format:

myFunction({
"response":
{
"date":"# #ddd mm dd hh:mm:ss PST yyyy",
"getusername":"null",
"warning":"null",
"pass_expiry":"-1",
"ticket":"abc123xyz",
"result":"true"
}
});









Looking forward to hearing if this is possible ...