Utilisation de Google Calendar API v 3 avec Python

Quelqu'un peut-il me donner une explication claire de la façon d'obtenir le Calendrier Google API v3 de travail avec le Client Python? Plus précisément, la première OAuth étape est grandement me confondre. Tout ce que je dois faire est d'accéder à mon propre calendrier, lire, et faire des modifications. Google fournit ce code pour la configuration de mon application:

import gflags
import httplib2

from apiclient.discovery import build
from oauth2client.file import Storage
from oauth2client.client import OAuth2WebServerFlow
from oauth2client.tools import run

FLAGS = gflags.FLAGS

# Set up a Flow object to be used if we need to authenticate. This
# sample uses OAuth 2.0, and we set up the OAuth2WebServerFlow with
# the information it needs to authenticate. Note that it is called
# the Web Server Flow, but it can also handle the flow for native
# applications
# The client_id and client_secret are copied from the API Access tab on
# the Google APIs Console
FLOW = OAuth2WebServerFlow(
    client_id='YOUR_CLIENT_ID',
    client_secret='YOUR_CLIENT_SECRET',
    scope='https://www.googleapis.com/auth/calendar',
    user_agent='YOUR_APPLICATION_NAME/YOUR_APPLICATION_VERSION')

# To disable the local server feature, uncomment the following line:
# FLAGS.auth_local_webserver = False

# If the Credentials don't exist or are invalid, run through the native client
# flow. The Storage object will ensure that if successful the good
# Credentials will get written back to a file.
storage = Storage('calendar.dat')
credentials = storage.get()
if credentials is None or credentials.invalid == True:
  credentials = run(FLOW, storage)

# Create an httplib2.Http object to handle our HTTP requests and authorize it
# with our good Credentials.
http = httplib2.Http()
http = credentials.authorize(http)

# Build a service object for interacting with the API. Visit
# the Google APIs Console
# to get a developerKey for your own application.
service = build(serviceName='calendar', version='v3', http=http,
       developerKey='YOUR_DEVELOPER_KEY')

Mais (a) il n'a absolument aucun sens pour moi; le commentaire explications sont terribles, et (b) je ne sais pas quoi mettre dans les variables. J'ai enregistré mon programme avec Google, et a signé pour un Compte de Service de clé. Mais tout ça m'a donné était une clé chiffrée fichier à télécharger, et un numéro de client. Je n'ai aucune idée de ce qu'est un "developerKey" est, ou de ce qu'est un "client_secret"? Est-ce la clé? Si elle l'est, comment puis-je l'obtenir, car il est réellement contenue dans un fichier crypté? Enfin, compte tenu de la relativement simples objectifs de mon API utiliser (c'est à dire, ce n'est pas un multi-utilisateur, multi-accès de l'opération), est-il un moyen plus simple de faire cela? Merci.

source d'informationauteur user1427661