Permanently deleted user
The ability to schedule CSV exports on an hourly basis would help provide more insight as to what is happening in the business on a more granular basis.
1
Comments
Please sign in to leave a comment.
Hi James,
I think there's a way to do this through Zapier, but I haven't had a chance to figure it out just yet. Stay tuned and I'll try to work up a way to do this soon!
You can do this with a CRON job and PHP. If you use the begin_second and end_second feature you can generate something like this. This example is for 1 hour. Just set your CRON job to run every 1 hour or whatever interval you want.
<?PHP
$timenow=time();
$tminus1hour = time() - 3600;
$url = "https://www.gocanvas.com/apiv2/csv.xml?form_id=xxxxx&begin_second=" .$tminus1hour. "&end_second=" .$timenow. "&username=username&password=password";
$source = file_get_contents($url);
file_put_contents('/somedirectoryonyourserver/filename.csv', $source);
?>