Skip to content

Commit 88aef83

Browse files
author
Gerben Jacobs
committed
Make example/find_habbo run out of the box
1 parent 825e61c commit 88aef83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/find_habbo.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
use HabboAPI\HabboParser;
88

99
// Create new Parser and API instance
10-
$habboParser = new HabboParser('91.195.1.33', 'https://www.habbo.com/api/public/');
10+
$server_ip = @file_get_contents('https://api.ipify.org'); // Only used for instant example, fix this in production
11+
$habboParser = new HabboParser($server_ip, 'https://www.habbo.com/api/public/');
1112
$habboApi = new HabboAPI($habboParser);
1213

1314
// Find the user 'Powertoo'

0 commit comments

Comments
 (0)