示例#1
0
文件: mixins.py 项目: pohmelie/aiovk
 def on_captcha_is_needed(self, url, *args):
     """
     Read CAPTCHA key from shell
     """
     print('Open captcha url:', url)
     captcha_key = raw_input('Enter captcha key: ')
     return captcha_key
示例#2
0
 def on_captcha_is_needed(self, url, *args):
     """
     Read CAPTCHA key from shell
     """
     print('Open captcha url:', url)
     captcha_key = raw_input('Enter captcha key: ')
     return captcha_key
示例#3
0
文件: mixins.py 项目: pohmelie/aiovk
 def get_access_token(self):
     logger.info('InteractiveMixin.get_access_token()')
     access_token, access_token_expires_in = yield from super(InteractiveMixin, self).get_access_token()
     if not access_token:
         access_token = raw_input('VK API access token: ')
         access_token_expires_in = None
     return access_token, access_token_expires_in
示例#4
0
 def get_access_token(self):
     logger.info('InteractiveMixin.get_access_token()')
     access_token, access_token_expires_in = yield from super(
         InteractiveMixin, self).get_access_token()
     if not access_token:
         access_token = raw_input('VK API access token: ')
         access_token_expires_in = None
     return access_token, access_token_expires_in
示例#5
0
 def get_auth_check_code(self):
     """
     Read Auth code from shell
     """
     auth_check_code = raw_input('Auth check code: ')
     return auth_check_code.strip()
示例#6
0
 def get_user_login(self):
     user_login = raw_input('VK user login: ')
     return user_login.strip()
示例#7
0
文件: mixins.py 项目: pohmelie/aiovk
 def get_auth_check_code(self):
     """
     Read Auth code from shell
     """
     auth_check_code = raw_input('Auth check code: ')
     return auth_check_code.strip()
示例#8
0
文件: mixins.py 项目: pohmelie/aiovk
 def get_user_login(self):
     user_login = raw_input('VK user login: ')
     return user_login.strip()