S
S
Sedbol2019-08-19 01:06:21
In contact with
Sedbol, 2019-08-19 01:06:21

VK methods api.audio. How to find an audio record by record id?

Tell me if anyone has any methods with the work of audio.api VK? I found how to get a token from methods, but I can’t find a description of the methods themselves for an hour! Does anyone have it or where can I read it? And then in VK everything is deleted !!!
Get token here

$client_id = '5456066';
$scope = 'offline,audio';
$new_url = "https://oauth.vk.com/authorize?client_id=$client_id&display=page&redirect_uri=https://oauth.vk.com/blank.html&scope=$scope&response_type=token&v=5.37";
header('Location: '.$new_url);

The audio.get method works fine, but how to find a record by id?
$acces_token="ТОКЕН";
$json = curl('https://api.vk.com/method/audio.get?user_id=432067845&need_user=0&count=1000&offset=0&access_token='.$acces_token.'&v=5.62');
$st = json_decode($json, true);
function curl($url)
{
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_URL, $url);
    curl_setopt($curl, CURLOPT_USERAGENT, "Opera/10.00 (Windows NT 5.1; U; ru) Presto/2.2.0");
    curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
    curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
    curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 0);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
    $response = curl_exec($curl);
    curl_close($curl);
    return $response;
}
?>
<pre style="word-wrap: break-word; white-space: pre-wrap;">"<?var_dump($st);?>"</pre>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
bkosun, 2019-08-19
@Sedbol

Alternatively, you can look here:
https://web.archive.org/web/*/https://vk.com/dev/audio
The archive has pages with a list of methods and their detailed description.

S
Stockholm Syndrome, 2019-08-19
@StockholmSyndrome

only two methods remained in public access - audio.getUploadServer and audio.save
, the rest were removed from public access almost 3 years ago
more here - https://vk.com/dev/audio_api

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question