forked from alashow/datmusic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
20 lines (15 loc) · 626 Bytes
/
search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/* ========================================================================
* Music v1.2.7
* https://github.com/alashow/music
* ======================================================================== */
include 'helper.php';
logSearch($_GET['q']);
$apiUrl = "https://api.vk.com/method/audio.search?";
$params = $_GET;
$params['access_token'] = $config["token"]; //for private access token. if public, comment this line so access token from js will be used
$fullUrl = $apiUrl . http_build_query($params);
$response = file_get_contents($fullUrl);
//hehe https://datmusic.xyz/stream/YGexC:AEYtr
die($response);
?>