Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. $ch = curl_init("https://tiger.block-league.net/api/application/users");
  2. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  3. curl_setopt($ch, CURLOPT_HTTPHEADER, array(
  4. 'Authorization: Bearer suBhR0BemVJ7qMr6JxiDUP80IEm77M2fZKUluPjM0rwe4WMl',
  5. 'Content-Type: application/json',
  6. 'Accept: Application/vnd.pterodactyl.v1+json',
  7. '-X GET'
  8. ));
  9.  
  10. $server_output = curl_exec($ch);
  11. curl_close($ch);
  12.  
  13. $decodedText = html_entity_decode($server_output);
  14. $myArray = json_decode($decodedText, true);
  15.  
  16. echo "<pre>";
  17. print_r($myArray);
  18. echo "</pre>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement