From 0f12ee73f95440e26485ff9c593e63fe50b8d7e8 Mon Sep 17 00:00:00 2001 From: Paul Rock Date: Tue, 7 Jul 2020 02:37:33 +0300 Subject: [PATCH] Additional example added --- examples/hotspot_user.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 examples/hotspot_user.php diff --git a/examples/hotspot_user.php b/examples/hotspot_user.php new file mode 100644 index 0000000..6ad450c --- /dev/null +++ b/examples/hotspot_user.php @@ -0,0 +1,24 @@ +set('host', '127.0.0.1') + ->set('port', 8728) + ->set('pass', 'admin') + ->set('user', 'admin'); + +// Initiate client with config object +$client = new Client($config); + +// Build query for details about user profile +$query = new Query('/ip/hotspot/user/profile/print'); + +// Add user +$out = $client->query($query)->read(); +dd($out);