-
Notifications
You must be signed in to change notification settings - Fork 0
/
Functions.php
67 lines (54 loc) · 2.05 KB
/
Functions.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
// Created at Sat 17 Jun 7:11 PM
// Developer By Azozz ALFiras
class PixelCake{
public function SearchAppName($App_Name){
$url = "https://apiv2.iphonecake.com/appcake/appcake_api/spv6/appsearch_r.php?device=1&q=$App_Name&p=0";
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$headers = array(
'"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",",
""User-Agent": "appcakej/7.0.4 (iPhone; iOS 13.6.1; Scale/3.00)",",
""Connection": "close",",
""Host": "apiv2.iphonecake.com",",
""Accept-Encoding": "gzip, deflate",",
""Cache-Control": "max-age=0"",
"Content-Type: application/x-www-form-urlencoded",
"Content-Length: 0",
');
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
//for debug only!
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$resp = curl_exec($curl);
curl_close($curl);
return $resp;//json_encode($resp);
}
public function SearchLinks($App_id){
$url = "https://apiv2.iphonecake.com/appcake/appcake_api/ipastore_ios_link.php?type=1&id=$App_id";
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$headers = array(
'"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",",
""User-Agent": "appcakej/7.0.4 (iPhone; iOS 13.6.1; Scale/3.00)",",
""Connection": "close",",
""Host": "apiv2.iphonecake.com",",
""Accept-Encoding": "gzip, deflate",",
""Cache-Control": "max-age=0"",
"Content-Type: application/x-www-form-urlencoded",
"Content-Length: 0",
');
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
//for debug only!
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$resp = curl_exec($curl);
curl_close($curl);
return $resp;//json_encode($resp);
}
}
?>