Closed clearsense closed 8 years ago
Sorry, this is already solved, as i see.
For overriding those methods use your own subclass derived from AuthAPI
and your custom vk session. So the composition looks like
class MyAuthAPI(AuthAPI):
def do_login(self, ...):
# implement whatever you want
# other methods overridings
class MyVKSession(VKSession):
DEFAULT_AUTH_API_CLS = MyAuthAPI
api = vk_requests.create_api(..., session_cls=MyVKSession)
Yea, thanks a lot.
Hi, what you think about do such thing?
Smth like this:
And same way add
def do_login(self, session, get_captcha_key=None):
So, user could define own captcha handler. Or maybe this is wrong way and user must inherit AuthAPI class and redefine inherit() method?