diff --git a/phpapi/README.md b/phpapi/README.md index 88cc1a8..9bc93c9 100644 --- a/phpapi/README.md +++ b/phpapi/README.md @@ -81,15 +81,15 @@ A basic example how to use the class: ```php /** * load the Unifi API connection class, log in to the controller and request the alarms collection - * (this examples assumes you have already assigned the correct values to the variables used) + * (this example assumes you have already assigned the correct values to the variables used) */ require_once('../phpapi/class.unifi.php'); -$unifidata = new unifiapi($controller_user, $controller_password, $controller_url, $site_id, $controller_version); -$loginresults = $unifidata->login(); -$data = $unifidata->list_alarms(); // returns the alarms in a PHP array +$unifidata = new unifiapi($controller_user, $controller_password, $controller_url, $site_id, $controller_version); +$login = $unifidata->login(); +$results = $unifidata->list_alarms(); // returns the alarms in a PHP array ``` Have a look at the files in the `examples` directory for more examples how to use this class. ## Important Disclaimer -Many of these functions are not officially supported by UBNT and as such, may not be supported in future versions of the UniFi controller API. \ No newline at end of file +Many of these functions are not officially supported by UBNT and as such, may not be supported in future versions of the UniFi controller API.