コード例 #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
ファイル: mixins.py プロジェクト: xxxbobrxxx/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
コード例 #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
ファイル: mixins.py プロジェクト: xxxbobrxxx/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
コード例 #5
0
ファイル: mixins.py プロジェクト: xxxbobrxxx/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()
コード例 #6
0
ファイル: mixins.py プロジェクト: xxxbobrxxx/aiovk
 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()