aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-03-13 21:04:47 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-03-13 21:04:47 +0300
commit1b32dfe28cd40f81bab9cb828e78fa1c7b70adc0 (patch)
treed86a9cee42b23b4a3118388793a3dc320dae7123
parentfix Pylint warnings (diff)
downloadvk-scripts-1b32dfe28cd40f81bab9cb828e78fa1c7b70adc0.tar.gz
vk-scripts-1b32dfe28cd40f81bab9cb828e78fa1c7b70adc0.zip
add "service" access_token
-rw-r--r--vk/api.py4
1 files changed, 4 insertions, 0 deletions
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,
}