- Modify the pull events function to take into account the page token
- Include time lower and upper bound for pulling events (instead of pulling all events and process with php)
- Note: per Google API documentation, pulling updates event with nextSyncToken cannot include time lower and upper bound.
- Refactor the codes for readability.