S
S
SideWest2019-03-23 15:14:46
Python
SideWest, 2019-03-23 15:14:46

VK.Requests.An error about the absence of a parameter arrives, why is this?

This is how I send the request:
token = 'token'

result = requests.get('https://api.vk.com/method/photos.saveMessagesPhoto', params={'acces_token': token,'photo': ur['photo'] ,'server': ur['server'],'hash':ur['hash']}).json()
print(result)

But it gives out:
{'error': {'error_code': 5, 'error_msg': 'User authorization failed: no access_token passed.

Why can this be?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stockholm Syndrome, 2019-03-23
@SideWest

an error in the name of the parameter
and you have
'acces_token': token

S
sim3x, 2019-03-23
@sim3x

User authorization failed: no access_token passed.
no access_token passed
no access_token

S
SideWest, 2019-03-23
@SideWest

God protect the Internet from people like me
I missed a letter in the request

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question