Esempio n. 1
0
 def select(cls, args):
     querys = User.update_access_token(1, "sweibo", "atttt", "2014-01-04")
     return querys[0].get_json()
Esempio n. 2
0
    def post(self):
        uid = self.current_user.id
        code = self.get_argument("code")

        User.update_access_token(self.current_user.id, 
                                 code, None, None, None, None)