Answer the question
In order to leave comments, you need to log in
VK api where is the error?
Good evening!
Tell me why there is an error when working with the API.
I received a token, it turns out to check a personal message using it:
' https://api.vk.com/method/messages.get?access_token= ' + AT
' https://api.vk.com/method/messages.send?access_token= ' + AT + '?user_id=13897175?message=' + str(i)an error occurs:
{"error":{"error_code":5,"error_msg":"User authorization failed: invalid access_token (4).","request_params":[{"key":"oauth","value":"1" },{"key":"method","value":"messages.send"}]}}
Answer the question
In order to leave comments, you need to log in
Separate GET parameters with &
https://api.vk.com/method/messages.send?access_token=' + AT + '&user_id=13897175&message=' + str(i)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question