Add Event in Google Calendar Using Javascript
Add Event in Google Calendar Using Javascript with google authentication. More information visit on https://developers.google.com/google-apps/calendar/ <a href="javascript:void(0)" class="addEvent-button" id="addEvent-button" onclick="addEventOnClick('<?php echo htmlentities($array); ?>');"><img src="img/gcalendar.png" title="Add to google calendar" style="height:24px !important;width:24px !important;"></a> <script type="text/javascript"> var clientId = 'CLIENTID'; var apiKey = 'APP KEY'; var scopes = 'https://www.googleapis.com/auth/calendar'; // Oauth2 functions function handleClientLoad() { gapi.client.setApiKey(apiKey); } function addEventOnClick(data) { gapi.auth.authorize({client_id: clientId, s...