Answer the question
In order to leave comments, you need to log in
How to correctly compose a vk search query?
Still, I regretted the Vkontakte API and began to use it. After long painful rewriting of the code, I was able to implement music search through VK on the site.
It's time to search for the video. Everything works on the same principle, only the request is different.
Here is the request:
$xml_response = Send_Post("https://api.vk.com/method/video.search.xml?access_token=$a_token&q=$fquery&count=1&sort=2&adult=0&v=5.24");
$parse = simplexml_load_string($xml_response);
$a_token = вечный токен после авторизации, вытягиваю из куки
$fquery = переформированный запрос ( The Beatles => The+Beatles )
Answer the question
In order to leave comments, you need to log in
Judging by this question , there may be problems with the Vk API
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question