I am trying to load an audio file via api vk (with ++, qt). Uploading to the site is normal, but when I try to call the api.vk.com/method/audio.save method, I get "invalid hash". Post request is this: (the token has been intentionally changed): https://api.vk.com/method/audio.save.xml?access_token=f60160adc63fce1978f49689686d51943a6e6f1e7d79ee83cfbdaba28gsg.p.g. % 22time% 22% 3A116% 2C% 22artist% 22% 3A% 22% 22% 2C% 22title% 22% 3A% 22% 22% 2C% 22genre% 22% 3A0% 2C% 22album% 22% 3A% 22% 22 % 2C% 22bitrate% 22% 3A40% 2C% 22bitrate_mode% 22% 3A% 22cbr% 22% 2% 2C% 22md5% 22% 3A% 22dad5bba12c1f7b7197aa5af0096e0403% 22% 2C% 22md5_data_size% 22% 3A% Apa54043% 22% 2C% 22md5_data_size% 22% 3A% I5%% % 3a% 22ag% 22ag What is the cause of the error? When I test the same fields on the page https://vk.com/dev/audio.save in the field entry form, everything works correctly.

  • 2
    If the hash goes last, it will be a good idea to check if you are sending something else in the tail. - VTT
  • I think this is not a hash: I created a stored procedure, when I pass a hash through arguments, everything works. When in the arguments I transmit audio, and the remaining parameters are protected — the error is reproduced - W_bear

2 answers 2

Audio api disabled for third-party applications, exceptions are only special applications that have value for their audience. It is noteworthy that the description of the Audio API methods is completely hidden from the documentation. It is possible that for third-party applications it was completely disabled.

  • No, I didn’t turn off the download of audio records on VKontakte and even the dock for downloading audio recordings to VC servers is publicly available: the VC link tried to make it difficult for the audio jump - W_bear
  • "Existing methods of the audio section will not be available for calling, except for methods for loading audio files." - W_bear

Most likely you have problems with access to audio recordings. I think that the download of files is blocked by the site itself, because the VK have protection from bots.

  • No, there is access to audio recordings. The download is successful, otherwise I would not be given the parameters to confirm the audio recording. The file complies with the downloadable requirements. - W_bear 2:57 pm