Search audio recordings through Vkontakte API

Can't do a search in vk on the website. Work through the class vkapi who have downloaded on off the website.

When you search for this bug:

public error_code => string(2) "11"
public error_msg => string(72) "In test mode application should be disabled or user should be authorized"


How to make a work search without any authorizations?
October 3rd 19 at 03:08
3 answers
October 3rd 19 at 03:10
Solution
For Your task you need the app to do in VC.

require 'vkapi.class.php'; // Plugin class
$api_id = '0123456789'; // your app ID
$vk_id = '0123456789'; // ID of your account
$VK = new vkapi($api_id, $vk_id); // call constructor

$track_name = "Name of the audio recording";
$resp = $VK->api('audio.search',array('q'=>$track_name,'count'=>'1'));

//We save it to the server

foreach($resp->audio as $key => $val) {
copy($val->url, 'mp3/'.$track_name.'.mp3');
}

The entire search will be carried out on your behalf and applications. Sam did so, the parser music.
Oh and the app must have a certain level of access to your account. - Dwight.Homeni commented on October 3rd 19 at 03:13
All described here http://habrahabr.ru/sandbox/57993/ - pearl_Web commented on October 3rd 19 at 03:16
October 3rd 19 at 03:12
Solution
Methods are available to authorized users.
On the website iplayer.fm parsed from the VC without authorization. If not via API, how?

Was autorizan in the VC, but still, it wrote an error: error_code => string(2) "11" - Dwight.Homeni commented on October 3rd 19 at 03:15
Maybe on the website there is a search through an authorized and specially created for this purpose user. - pearl_Web commented on October 3rd 19 at 03:18
October 3rd 19 at 03:14
Solution
How to make a work search without any authorizations?

No way. What's stopping you create an application and connect a API with authorization? Minute work.

Find more questions by tags APIPHP