title: Working with Google Drive API on the google cloud
body: <p>I have a google app engine site, and what I want to do, is get access to the files on my drive and publish them. Note that, my account owns both the drive and the app engine page.</p>
  
  <p>I have tried looking at the google drive api, and the problem is that I don't know where to start with the following boilerplate code located in their <a href="https://developers.google.com/drive/auth/web-server" rel="nofollow">documentation</a>.</p>
  
  <p>If you take a look at this function:</p>
  
  <pre><code>def get_credentials(authorization_code, state):
      """Retrieve credentials using the provided authorization code.
  
      This function exchanges the authorization code for an access token and queries
      the UserInfo API to retrieve the user's e-mail address.
      If a refresh token has been retrieved along with an access token, it is stored
      in the application database using the user's e-mail address as key.
      If no refresh token has been retrieved, the function checks in the application
      database for one and returns it if found or raises a NoRefreshTokenException
      with the authorization URL to redirect the user to.
  
      Args:
        authorization_code: Authorization code to use to retrieve an access token.
        state: State to set to the authorization URL in case of error.
      Returns:
        oauth2client.client.OAuth2Credentials instance containing an access and
        refresh token.
      Raises:
        CodeExchangeError: Could not exchange the authorization code.
        NoRefreshTokenException: No refresh token could be retrieved from the
                                 available sources.
      """
      email_address = ''
      try:
          credentials = exchange_code(authorization_code)
          user_info = get_user_info(credentials)
          email_address = user_info.get('email')
          user_id = user_info.get('id')
          if credentials.refresh_token is not None:
              store_credentials(user_id, credentials)
              return credentials
          else:
              credentials = get_stored_credentials(user_id)
              if credentials and credentials.refresh_token is not None:
                  return credentials
      except CodeExchangeException, error:
          logging.error('An error occurred during code exchange.')
          # Drive apps should try to retrieve the user and credentials for the current
          # session.
          # If none is available, redirect the user to the authorization URL.
          error.authorization_url = get_authorization_url(email_address, state)
          raise error
      except NoUserIdException:
          logging.error('No user ID could be retrieved.')
          # No refresh token has been retrieved.
      authorization_url = get_authorization_url(email_address, state)
      raise NoRefreshTokenException(authorization_url)
  </code></pre>
  
  <p>This is a part of the boilerplate code. However, where am I supposed to get <code>authorisation_code</code> from?</p>