From 1b32dfe28cd40f81bab9cb828e78fa1c7b70adc0 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 13 Mar 2019 21:04:47 +0300 Subject: add "service" access_token --- vk/api.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vk') diff --git a/vk/api.py b/vk/api.py index f9df904..d79122d 100644 --- a/vk/api.py +++ b/vk/api.py @@ -55,6 +55,8 @@ def _join_path(base, url): base += '/' return urllib.parse.urljoin(base, url) +ACCESS_TOKEN = '9722cef09722cef09722cef071974b8cbe997229722cef0cbabfd816916af6c7bd37006' + class Version(Enum): V5_73 = '5.73' DEFAULT = V5_73 @@ -77,6 +79,7 @@ class Method(Enum): return self.value class CommonParameters(Enum): + ACCESS_TOKEN = 'access_token' VERSION = 'v' LANGUAGE = 'lang' @@ -90,6 +93,7 @@ class API: def __init__(self, version=Version.DEFAULT, lang=Language.DEFAULT): self._common_params = { + CommonParameters.ACCESS_TOKEN: ACCESS_TOKEN, CommonParameters.VERSION: version, CommonParameters.LANGUAGE: lang, } -- cgit v1.2.3