-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCronJob.php
More file actions
26 lines (26 loc) · 804 Bytes
/
CronJob.php
File metadata and controls
26 lines (26 loc) · 804 Bytes
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
<?php
error_reporting(0);
header("content-type: application/json; charset= UTF-8");
$fields = [
'accessKey' => "", // Set Your API Access Key, Get: @APIManager_Bot
'link' => $_GET['link'],
'time' => $_GET['time'],
'email' => "", // set your email
'password' => "", // set your password
];
$cURL = curl_init();
curl_setopt_array($cURL, array(
CURLOPT_URL => "https://api.ineo-team.ir/cronjob.php",
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $fields,
CURLOPT_RETURNTRANSFER => true,
));
$result = json_decode(curl_exec($cURL));
curl_close($cURL);
if($result->status_code == 200){
echo json_encode(['status' => $result->status, 'cronjobId' => $result->result->cronjobId]);
}else{
echo json_encode(['status' => $result->status, 'message' => $result->message]);
}
unlink("error_log");
?>