-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathInviteList.php
More file actions
35 lines (31 loc) · 838 Bytes
/
Copy pathInviteList.php
File metadata and controls
35 lines (31 loc) · 838 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
27
28
29
30
31
32
33
34
35
<?php
require("./Expand.php");
$AccessToken = $_POST['AccessToken'];
if ($AccessToken == '') {
echo json_encode(
array(
'Status' => 18
)
); #参数不全
} else {
$Url = 'https://api-drive.mypikpak.com/vip/v1/activity/inviteList';
$Header = array(
'User-Agent: PikPakWeb (github.com/UallenQbit/PikPakWeb)',
'Authorization: Bearer ' . $AccessToken
);
$Result = CurlGet($Url, $Header);
if (json_decode($Result, true)['error'] == 'unauthenticated') {
echo json_encode(
array(
'Status' => 48
)
); #AccessToken不可用
} else {
echo json_encode(
array(
'Status' => 0,
'Data' => $Result
)
);
}
}