예제 #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()