Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ch = curl_init("https://tiger.block-league.net/api/application/users");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array(
- 'Authorization: Bearer suBhR0BemVJ7qMr6JxiDUP80IEm77M2fZKUluPjM0rwe4WMl',
- 'Content-Type: application/json',
- 'Accept: Application/vnd.pterodactyl.v1+json',
- '-X GET'
- ));
- $server_output = curl_exec($ch);
- curl_close($ch);
- $decodedText = html_entity_decode($server_output);
- $myArray = json_decode($decodedText, true);
- echo "<pre>";
- print_r($myArray);
- echo "</pre>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement