M
M
meridbt2020-02-20 15:36:01
API
meridbt, 2020-02-20 15:36:01

Api vk.com - why does not accept the version?

If you send a request from the sandbox, then the message is successfully sent:

https://vk.com/dev/messages.send?params[random_id]=354655&params[peer_id]=185014513&params[message]=Test%20message&params[dont_parse_links]=0&params[disable_mentions]=0&params[v]=5.103

If you move the request text to a new tab by adding a valid token...
https://api.vk.com/method/messages.send?params[random_id]=354654&params[peer_id]=185014513&params[message]=Test%20message&params[v]=5.103&access_token=валидный_токен_scope_messages

...then I get an error message:
{"error":{"error_code":8,"error_msg":"Invalid request: v is required. Version param should be passed as \"v\". \"version\" param is invalid and not supported.","request_params":[{"key":"params","value":"354655,185014513,Test message,5.103"},{"key":"method","value":"messages.send"},{"key":"oauth","value":"1"}]}}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jasur0090, 2020-02-20
@meridbt

https://api.vk.com/method/messages.send?random_id=354654&peer_id=185014513&message=Testmessage&v=5.103&access_token=xxx

just remove params[] everywhere.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question