@@ -0,0 +1,1387 @@
+#from __future__ import print_function%0Aimport sys%0Aimport httplib2%0Aimport os%0A%0Afrom apiclient import discovery%0Aimport oauth2client%0Afrom oauth2client import client%0Afrom oauth2client import tools%0Afrom oauth2client import file%0Afrom apiclient.discovery import build%0Afrom httplib2 import Http%0A%0Aimport datetime%0A%0A%0A#try:%0A    #import argparse%0A    #flags = argparse.ArgumentParser(parents=%5Btools.argparser%5D).parse_args()%0A#except ImportError:%0A    #flags = None%0A%0A# If modifying these scopes, delete your previously saved credentials%0A# at ~/.credentials/calendar-python-quickstart.json%0ASCOPES = 'https://www.googleapis.com/auth/calendar'%0Astore = file.Storage('storage.json')%0Acreds = store.get()%0Aif not creds or creds.invalid:%0A  flow = client.flow_from_clientsecrets('client_secret.json', SCOPES)%0A  creds = tools.run_flow(flow, store, flags) %5C%0A%09  if flags else tools.run(flow, store)%0ACAL = build('calendar', 'v3', http=creds.authorize(Http()))%0A%0ASUBJECT = sys.argv%5B1%5D%0A%0AGMT_OFF = '-04:00'%0AEVENT = %7B%0A  'summary' : SUBJECT,%0A  'start' : %7B'dateTime': '2016-08-12T19:00:00%25s' %25 GMT_OFF%7D,%0A  'end' : %7B'dateTime': '2016-08-12T22:00:00%25s' %25 GMT_OFF%7D,%0A  'attendees': %5B%0A    %0A  %5D,%0A%7D%0A  %0Ae = CAL.events().insert(calendarId='primary',%0A%09sendNotifications=True, body=EVENT).execute()%0A%0Aprint('''*** %25r event added:%0A  Start: %25s%0A  End:   %25s''' %25 (e%5B'summary'%5D.encode('utf-8'),%0A%09e%5B'start'%5D%5B'dateTime'%5D, e%5B'end'%5D%5B'dateTime'%5D))%0A

Create event2.py