Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
malle-pietje authored Apr 22, 2017
1 parent 6307568 commit 50219f5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions phpapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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.

0 comments on commit 50219f5

Please sign in to comment.