Advertisement
benshepherd

Habbo 403 forbidden

Nov 6th, 2019
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.77 KB | None | 0 0
  1. <?php
  2.  
  3. $options = [
  4.     'debug' => true,
  5.     'allow_redirects' => true,
  6.     'headers' => [
  7.         'User-Agent' => 'habbocreate.com/1.0',
  8.         'Accept' => 'application/json',
  9.         'Content-Type' => 'application/json',
  10.     ]
  11. ];
  12.  
  13. Route::get('test/profile', function() use($options) {
  14.  
  15.     try {
  16.         $client = new \GuzzleHttp\Client();
  17.         $response = $client->request('GET', 'https://www.habbo.com/api/public/users?name=ben.', $options);
  18.  
  19.         dd($response);
  20.     }
  21.     catch (\Exception $e) {
  22.         dd($e);
  23.     }
  24. });
  25.  
  26. Route::get('test/badges', function() use($options) {
  27.     $client = new \GuzzleHttp\Client();
  28.     $response = $client->request('GET', 'https://www.habbo.com/gamedata/external_flash_texts/1', $options);
  29.  
  30.     dd($response);
  31. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement