def main():
credentials = get_credentials()<EOL>http = credentials.authorize(httplib2.Http())<EOL>service = discovery.build('<STR_LIT>', '<STR_LIT>', http=http)<EOL>now = datetime.datetime.utcnow().isoformat() + '<STR_LIT>' <EOL>print('<STR_LIT>')<EOL>eventsResult = service.events().list(<EOL>calendarId='<STR_LIT>', timeMin=now, maxResults=<NUM_LIT:10>, singleEvents=True,<EOL>orderBy='<STR_LIT>').execute()<EOL>events = eventsResult.get('<STR_LIT>', [])<EOL>if not events:<EOL><INDENT>print('<STR_LIT>')<EOL><DEDENT>for event in events:<EOL><INDENT>start = event['<STR_LIT:start>'].get('<STR_LIT>', event['<STR_LIT:start>'].get('<STR_LIT:date>'))<EOL>print(start, event['<STR_LIT>'])<EOL><DEDENT>
Shows basic usage of the Google Calendar API.

    Creates a Google Calendar API service object and outputs a list of the next
    10 events on the user's calendar.