smullolo / easy-appointments

Automatically exported from code.google.com/p/easy-appointments
0 stars 0 forks source link

Ability to sync Google from cron #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Could we just remove the session and pass the provider id and user id to the 
function to run the Google sync via a crontab?

Original issue reported on code.google.com by deanmaun...@gmail.com on 8 Jul 2014 at 1:30

GoogleCodeExporter commented 9 years ago
Perform a GET request to the following url in your desired interval:

"http://url-to-ea/google/sync/{provider-record-id}"

You will find the {provider-record-id} value from the database (typical MySQL 
db).
eg. "http://mysite.com/ea/google/sync/3"

You will also need to comment out line 82 from the 
"/applications/controllers/google.php" file in order to override the user 
session check.

Original comment by alextselegidis@gmail.com on 8 Jul 2014 at 5:05

GoogleCodeExporter commented 9 years ago

Original comment by alextselegidis@gmail.com on 21 Jul 2014 at 6:47