This commit is contained in:
Egor Matveev 2022-04-02 19:01:57 +03:00
parent 95891ddd19
commit e2ebcdbfaa

View File

@ -19,7 +19,7 @@ class VKAddView(BaseView):
return
access_token = self.request.GET['access_token']
token = os.getenv("VK_SERVICE_TOKEN")
resp = get(f'https://api.vk.com/method/secure.checkToken?token={access_token}&access_token={token}').json()
resp = get(f'https://api.vk.com/method/secure.checkToken?token={access_token}&access_token={token}&v=5.131').json()
print("Got response while adding user", resp)
if 'success' in resp and resp['success'] == 1:
user_id = resp['user_id']