-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathalbum-information.php
More file actions
22 lines (22 loc) · 756 Bytes
/
album-information.php
File metadata and controls
22 lines (22 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
error_reporting(0);
header("content-type: application/json; charset= UTF-8");
$api = "https://api.ineo-team.ir"; //don't change it.
$parameters = array(
'auth' => "rj2995170299", // http-access-token
'action' => "album", // request method
'query' => "Jarshaa-Tapoori" // artist and album name
);
$output = json_decode(file_get_contents($api."/radiojavan.php?".http_build_query($parameters)));
if($output->status == "successfully"){
$r = $output->result;
echo json_encode(['ok' => true, 'status' => "successfully", 'result' => [
'count' => $r->count,
'query' => $r->query,
'list' => $r->album_result
]]);
}else{
echo json_encode(['ok' => false, 'status' => $output->status]);
}
unlink("error_log");
?>