Update code.gs
Update code.gs

Updated code as synctoken is not in the first page if you have lot of events . You need to browse all page with nextpagetoken to get synctoken on the last page.
St3ph-fr/my-apps-script-utils