def get(self):
    """Invoked after we're redirected back from the approval page."""

    self.session = Session()
    oauth_token = gdata.auth.OAuthTokenFromUrl(self.request.uri)
    if oauth_token:
      oauth_token.oauth_input_params = gdocs.GetOAuthInputParameters()
      gdocs.SetOAuthToken(oauth_token)

      # 3.) Exchange the authorized request token for an access token
      oauth_verifier = self.request.get('oauth_verifier', default_value='')
      access_token = gdocs.UpgradeToOAuthAccessToken(
          oauth_verifier=oauth_verifier)

      # Remember the access token in the current user's token store
      if access_token or users.get_current_user():
        gdocs.token_store.add_token(access_token)
      elif access_token:
        gdocs.current_token = access_token
        gdocs.SetOAuthToken(access_token)

    self.redirect('/')

  # POST /get_oauth_token
dataset/ETHPy150Open kuri65536/python-for-android/python-build/python-libs/gdata/samples/oauth/oauth_on_appengine/main_rsa.py/OAuthDance.get/operator `and` -> `or`