mirror of
https://github.com/Art-of-WiFi/UniFi-API-client.git
synced 2024-11-21 17:49:59 +01:00
updated examples to use the composer autoloader
This commit is contained in:
parent
e4d368cc72
commit
cd24ef1c2c
@ -122,6 +122,12 @@ A basic example how to use the class:
|
||||
```php
|
||||
|
||||
...
|
||||
|
||||
/**
|
||||
* load the class using the composer autoloader
|
||||
*/
|
||||
require "vendor/autoload.php";
|
||||
|
||||
/**
|
||||
* initialize the Unifi API connection class, log in to the controller and request the alarms collection
|
||||
* (this example assumes you have already assigned the correct values to the variables used)
|
||||
|
@ -6,6 +6,11 @@
|
||||
* description: example basic PHP script to fetch an Access Point's scanning state/results
|
||||
*/
|
||||
|
||||
/**
|
||||
* using the composer autoloader
|
||||
*/
|
||||
require "vendor/autoload.php";
|
||||
|
||||
/**
|
||||
* include the config file (place your credentials etc. there if not already present)
|
||||
* see the config.template.php file for an example
|
||||
|
@ -6,6 +6,11 @@
|
||||
* description: example basic PHP script to perform a basic auth of a guest device
|
||||
*/
|
||||
|
||||
/**
|
||||
* using the composer autoloader
|
||||
*/
|
||||
require "vendor/autoload.php";
|
||||
|
||||
/**
|
||||
* include the config file (place your credentials etc. there if not already present)
|
||||
* see the config.template.php file for an example
|
||||
|
@ -6,6 +6,11 @@
|
||||
* description: example basic PHP script to auth a guest device and attach a note to it
|
||||
*/
|
||||
|
||||
/**
|
||||
* using the composer autoloader
|
||||
*/
|
||||
require "vendor/autoload.php";
|
||||
|
||||
/**
|
||||
* include the config file (place your credentials etc. there if not already present)
|
||||
* see the config.template.php file for an example
|
||||
|
@ -6,6 +6,11 @@
|
||||
* description: example basic PHP script to create a set of vouchers
|
||||
*/
|
||||
|
||||
/**
|
||||
* using the composer autoloader
|
||||
*/
|
||||
require "vendor/autoload.php";
|
||||
|
||||
/**
|
||||
* include the config file (place your credentials etc. there if not already present)
|
||||
* see the config.template.php file for an example
|
||||
|
@ -6,6 +6,11 @@
|
||||
* description: example of how to extend validity of guest authorizations
|
||||
*/
|
||||
|
||||
/**
|
||||
* using the composer autoloader
|
||||
*/
|
||||
require "vendor/autoload.php";
|
||||
|
||||
/**
|
||||
* include the config file (place your credentials etc. there if not already present)
|
||||
* see the config.template.php file for an example
|
||||
|
@ -6,6 +6,11 @@
|
||||
* description: example basic PHP script to pull current alarms from the UniFi controller and output in json format
|
||||
*/
|
||||
|
||||
/**
|
||||
* using the composer autoloader
|
||||
*/
|
||||
require "vendor/autoload.php";
|
||||
|
||||
/**
|
||||
* include the config file (place your credentials etc. there if not already present)
|
||||
* see the config.template.php file for an example
|
||||
|
@ -7,6 +7,11 @@
|
||||
* in raw HTML format
|
||||
*/
|
||||
|
||||
/**
|
||||
* using the composer autoloader
|
||||
*/
|
||||
require "vendor/autoload.php";
|
||||
|
||||
/**
|
||||
* include the config file (place your credentials etc there if not already present)
|
||||
* see the config.template.php file for an example
|
||||
|
@ -7,6 +7,11 @@
|
||||
* in json format
|
||||
*/
|
||||
|
||||
/**
|
||||
* using the composer autoloader
|
||||
*/
|
||||
require "vendor/autoload.php";
|
||||
|
||||
/**
|
||||
* include the config file (place your credentials etc. there if not already present)
|
||||
* see the config.template.php file for an example
|
||||
|
@ -7,6 +7,11 @@
|
||||
* them in basic HTML format
|
||||
*/
|
||||
|
||||
/**
|
||||
* using the composer autoloader
|
||||
*/
|
||||
require "vendor/autoload.php";
|
||||
|
||||
/**
|
||||
* include the config file (place your credentials etc. there if not already present)
|
||||
* see the config.template.php file for an example
|
||||
|
@ -7,6 +7,11 @@
|
||||
* output the response in json format
|
||||
*/
|
||||
|
||||
/**
|
||||
* using the composer autoloader
|
||||
*/
|
||||
require "vendor/autoload.php";
|
||||
|
||||
/**
|
||||
* include the config file (place your credentials etc. there if not already present)
|
||||
* see the config.template.php file for an example
|
||||
|
Loading…
Reference in New Issue
Block a user