deletion of the discover_calendar parameter of the getEvents method
change the general code structure