Answer the question
In order to leave comments, you need to log in
Why does it sometimes not return a token when requested?
I use the following request (getting a token by login and password):
url = 'http://oauth.vk.com/token'
scope = 'notify,photos,friends,audio,video,notes,pages,docs,status,questions,offers,wall,groups,messages, ' \
'notifications,stats,ads,offline,stories,email,market'
params = dict(v=5.124, client_id=app_id, scope=scope, client_secret=app_secret,
grant_type='password', username=login, password=password)
res = requests.get(url, params=params, headers=headers, proxies=proxies, timeout=timeout)
{'extend_fields': ['birthday', 'avatar'], 'sid': 'c56defa93sdgf4ghd0c9cccbc', 'extend_fields_values': {'birthday': {'day': 21, 'year': 1977}}}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question