From 9296ef53339b45b459c1668d3f74c41b171a1d30 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Mon, 17 Dec 2018 17:01:37 -0600 Subject: [PATCH] authenticate properly in alternative tokens --- src/sessionmanager/vkSessionHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sessionmanager/vkSessionHandler.py b/src/sessionmanager/vkSessionHandler.py index bb91b82..030f467 100644 --- a/src/sessionmanager/vkSessionHandler.py +++ b/src/sessionmanager/vkSessionHandler.py @@ -25,7 +25,7 @@ class vkObject(object): self.session_object = vk_api.VkApi(app_id=self.api_key, login=user, password=password, token=token, scope="offline, wall, notify, friends, photos, audio, video, docs, notes, pages, status, groups, messages, notifications, stats", config_filename=filename) else: self.session_object = vk_api.VkApi(app_id=self.api_key, login=user, password=password, scope="offline, wall, notify, friends, photos, audio, video, docs, notes, pages, status, groups, messages, notifications, stats", config_filename=filename) - self.session_object.auth(token_only=True) + self.session_object.auth() self.client = self.session_object.get_api() # print self.client.audio.get() log.debug("Getting tokens for 24 hours...")