Advertisement
benshepherd

Habbo API guzzle

Nov 4th, 2019
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. Route::get('basic', function() {
  2.  
  3.     $client = new \GuzzleHttp\Client();
  4.     $response = $client->request('GET', 'https://www.habbo.com/api/public/users?name=ben.', [
  5.         'headers' => [
  6.             'User-Agent' => 'api.habboconnect.com/1.0',
  7.             'Accept' => 'application/json',
  8.             'Content-Type' => 'application/json',
  9.         ]
  10.     ]);
  11.  
  12.     dd($response); // 403 error
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement