diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-03-13 21:04:47 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-03-13 21:04:47 +0300 |
commit | 1b32dfe28cd40f81bab9cb828e78fa1c7b70adc0 (patch) | |
tree | d86a9cee42b23b4a3118388793a3dc320dae7123 | |
parent | fix Pylint warnings (diff) | |
download | vk-scripts-1b32dfe28cd40f81bab9cb828e78fa1c7b70adc0.tar.gz vk-scripts-1b32dfe28cd40f81bab9cb828e78fa1c7b70adc0.zip |
add "service" access_token
-rw-r--r-- | vk/api.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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, } |