Safe ticket call

Safe ticket call

I'm developing a Google Apps application where users can add data to my Zoho Reports database. For this I use the AddRow method from the API. But, to use this method I need a ticket id which needs to be refreshed every 7 days. The  Zoho Reports ID and the Zoho Reports Password is required for this action. 

Is there a safe way to make this call. I think placing the login id and password in my code and run it as an cronjob every 7 days is not a good idea. Can I send an encrypted password or can I increase the lifetime of the ticket? Or is there an other call to retreive the ticket with the API key only?

Thanks