Did I find the right examples for you? yes no

All Samples(1152)  |  Call(1152)  |  Derive(0)  |  Import(0)

src/o/h/oh-mainline-HEAD/vendor/packages/gdata/samples/apps/provisioning_oauth_example/main.py   oh-mainline(Download)
      service
    except:
      self.redirect('/login')
      return
 
          json = get_json_from_feed(user_feed)
      else:
        self.redirect('/login')
        return
    except AppsForYourDomainException, e:
    if two_legged_oauth:
      # Redirect to MainPage if 2-legged OAuth is requested
      self.redirect('/?two_legged_oauth=true')
      return
 
    # Send user to Google authorization page
    google_auth_page_url = service.GenerateOAuthAuthorizationURL()
    self.redirect(google_auth_page_url)
 
  def get(self):
        service.SetOAuthToken(access_token)
 
    self.redirect('/')
 
 

src/o/t/ottwatch-HEAD/lib/gdata/samples/apps/provisioning_oauth_example/main.py   ottwatch(Download)
      service
    except:
      self.redirect('/login')
      return
 
          json = get_json_from_feed(user_feed)
      else:
        self.redirect('/login')
        return
    except AppsForYourDomainException, e:
    if two_legged_oauth:
      # Redirect to MainPage if 2-legged OAuth is requested
      self.redirect('/?two_legged_oauth=true')
      return
 
    # Send user to Google authorization page
    google_auth_page_url = service.GenerateOAuthAuthorizationURL()
    self.redirect(google_auth_page_url)
 
  def get(self):
        service.SetOAuthToken(access_token)
 
    self.redirect('/')
 
 

src/g/d/gdata-2.0.18/samples/apps/provisioning_oauth_example/main.py   gdata(Download)
      service
    except:
      self.redirect('/login')
      return
 
          json = get_json_from_feed(user_feed)
      else:
        self.redirect('/login')
        return
    except AppsForYourDomainException, e:
    if two_legged_oauth:
      # Redirect to MainPage if 2-legged OAuth is requested
      self.redirect('/?two_legged_oauth=true')
      return
 
    # Send user to Google authorization page
    google_auth_page_url = service.GenerateOAuthAuthorizationURL()
    self.redirect(google_auth_page_url)
 
  def get(self):
        service.SetOAuthToken(access_token)
 
    self.redirect('/')
 
 

src/o/h/oh-mainline-HEAD/vendor/packages/gdata/samples/blogger/app/blogapp.py   oh-mainline(Download)
    token = get_auth_token(self.request)
    if not token:
      self.redirect('/blogs')
      return
    path = os.path.join(os.path.dirname(__file__), 'post_editor.html')
  def post(self):
    token = get_auth_token(self.request)
    if not token:
      self.redirect('/blogs')
      return

src/o/t/ottwatch-HEAD/lib/gdata/samples/blogger/app/blogapp.py   ottwatch(Download)
    token = get_auth_token(self.request)
    if not token:
      self.redirect('/blogs')
      return
    path = os.path.join(os.path.dirname(__file__), 'post_editor.html')
  def post(self):
    token = get_auth_token(self.request)
    if not token:
      self.redirect('/blogs')
      return

src/o/h/oh-mainline-HEAD/vendor/packages/gdata/samples/oauth/oauth_on_appengine/main_rsa.py   oh-mainline(Download)
  def get(self):
    if not users.get_current_user():
      self.redirect(users.create_login_url(self.request.uri))
 
    access_token = gdocs.token_store.find_token('%20'.join(SETTINGS['SCOPES']))
        gdocs.SetOAuthToken(access_token)
 
    self.redirect('/')
 
  # POST /get_oauth_token
 
      # 2.) APPROVAL STEP.  Redirect to user to Google's OAuth approval page.
      self.redirect(approval_page_url)
 
 
 
    gdocs.token_store.remove_all_tokens()
    self.redirect('/')
 
 

src/o/h/oh-mainline-HEAD/vendor/packages/gdata/samples/oauth/oauth_on_appengine/main_hmac.py   oh-mainline(Download)
  def get(self):
    if not users.get_current_user():
      self.redirect(users.create_login_url(self.request.uri))
 
    access_token = gdocs.token_store.find_token('%20'.join(SETTINGS['SCOPES']))
        gdocs.SetOAuthToken(access_token)
 
    self.redirect('/')
 
  # POST /get_oauth_token
 
      # 2.) APPROVAL STEP.  Redirect to user to Google's OAuth approval page.
      self.redirect(approval_page_url)
 
 
 
    gdocs.token_store.remove_all_tokens()
    self.redirect('/')
 
 

src/g/d/gdata-2.0.18/samples/blogger/app/blogapp.py   gdata(Download)
    token = get_auth_token(self.request)
    if not token:
      self.redirect('/blogs')
      return
    path = os.path.join(os.path.dirname(__file__), 'post_editor.html')
  def post(self):
    token = get_auth_token(self.request)
    if not token:
      self.redirect('/blogs')
      return

src/o/t/ottwatch-HEAD/lib/gdata/samples/oauth/oauth_on_appengine/main_rsa.py   ottwatch(Download)
  def get(self):
    if not users.get_current_user():
      self.redirect(users.create_login_url(self.request.uri))
 
    access_token = gdocs.token_store.find_token('%20'.join(SETTINGS['SCOPES']))
        gdocs.SetOAuthToken(access_token)
 
    self.redirect('/')
 
  # POST /get_oauth_token
 
      # 2.) APPROVAL STEP.  Redirect to user to Google's OAuth approval page.
      self.redirect(approval_page_url)
 
 
 
    gdocs.token_store.remove_all_tokens()
    self.redirect('/')
 
 

src/o/t/ottwatch-HEAD/lib/gdata/samples/oauth/oauth_on_appengine/main_hmac.py   ottwatch(Download)
  def get(self):
    if not users.get_current_user():
      self.redirect(users.create_login_url(self.request.uri))
 
    access_token = gdocs.token_store.find_token('%20'.join(SETTINGS['SCOPES']))
        gdocs.SetOAuthToken(access_token)
 
    self.redirect('/')
 
  # POST /get_oauth_token
 
      # 2.) APPROVAL STEP.  Redirect to user to Google's OAuth approval page.
      self.redirect(approval_page_url)
 
 
 
    gdocs.token_store.remove_all_tokens()
    self.redirect('/')
 
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next