Google Calendar API: Clear All Events From Secondary Calendar PHP -


i'm trying clear contents of secondary google calendar in php see in api documentation clear() method works on accounts primary calendar , wont take parameters secondary calendar calendar id. instead says use delete() method not want delete calendar together, delete contents.

//legal  $service->calendars->clear('primary'); //illegal $service->calendars->clear($calendarid); 

what effective way clearing events of secondary calendar in api?

you can delete events secondary calendar in primary. use events: delete , provide calendarid , eventid. but, take note in secondary calendar, calendarid no longer default email. it's different. (calendar-> calendar settings -> calendar address ) can give try-it test this.


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -