-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
RadioJavan-new-version.php
44 lines (44 loc) · 1.19 KB
/
RadioJavan-new-version.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/*
* Name:
RadioJavan Full Access API
* Language:
PHP
* Documents:
https://api.ineo-team.ir/docs.php?apiName=radiojavan
* Examples:
https://github.com/iNeoTeam/RadioJavan-API
* Telegram Bot:
@RadioJavanComBot
* Get HTTP TOKEN:
T.me/RadioJavanComBot?start=dev
* Coded By:
Sir.4m1R [Contact: T.me/CrossXss]
* Powered By:
iNeoTeam [Contact: T.me/iNeoTeam]
* Date:
1400/10/17 | 13:00:00 (Asia/Tehran)
*/
error_reporting(0);
header("content-type: application/json; charset= UTF-8");
$api = "https://api.ineo-team.ir"; // Don't change it!
define('AUTH', "rj1234567890"); // Replace your RadioJavan api http access key.
function RadioJavan($method, $data = []){
global $api;
$data['action'] = $method;
$cURL = curl_init();
curl_setopt($cURL, CURLOPT_URL, $api."/RadioJavan-vr.php?".http_build_query($data));
curl_setopt($cURL, CURLOPT_RETURNTRANSFER, true);
curl_setopt($cURL, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Authentification: '.AUTH
));
$Result = json_decode(curl_exec($cURL), true);
curl_close($cURL);
return $Result;
}
// Example Request:
$data = ['name' => "Pishro"];
echo json_encode(RadioJavan("artist", $data));
unlink("error_log");
?>