コード例 #1
0
ファイル: provider.py プロジェクト: epiphone/pucktracker
    def save_request_token(self, client_key, request_token, callback,
            realm=None, secret=None):
        client = Client.query(Client.client_key == client_key).get()

        if client:
            token = RequestToken(
                token=request_token,
                callback=callback,
                secret=secret,
                realm=realm,
                client=client.key)
            token.put()
コード例 #2
0
ファイル: provider.py プロジェクト: jasalt/pucktracker
    def save_request_token(self,
                           client_key,
                           request_token,
                           callback,
                           realm=None,
                           secret=None):
        client = Client.query(Client.client_key == client_key).get()

        if client:
            token = RequestToken(token=request_token,
                                 callback=callback,
                                 secret=secret,
                                 realm=realm,
                                 client=client.key)
            token.put()
コード例 #3
0
ファイル: html.py プロジェクト: noboru-i/kyouen-python
 def get(self):
     auth = tweepy.OAuthHandler(Const.CONSUMER_KEY, Const.CONSUMER_SECRET)
     auth_url = auth.get_authorization_url()
     request_token = RequestToken(token_key=auth.request_token.key, token_secret=auth.request_token.secret)
     request_token.put()
     self.redirect(auth_url)