mirror of
https://github.com/Art-of-WiFi/UniFi-API-client.git
synced 2024-11-25 03:30:42 +01:00
minor bugs removed from two examples
This commit is contained in:
parent
77972aab55
commit
14f4d58b02
@ -35,6 +35,6 @@ $loginresults = $unifi_connection->login();
|
||||
$results = $unifi_connection->create_site($description);
|
||||
|
||||
/**
|
||||
* provide feedback (the newly created vouchers) in json format
|
||||
* provide feedback in json format
|
||||
*/
|
||||
echo json_encode($vouchers, JSON_PRETTY_PRINT);
|
||||
echo json_encode($results, JSON_PRETTY_PRINT);
|
||||
|
@ -24,7 +24,7 @@ $site_id = '<short site name of a site the credentials used have access to>';
|
||||
|
||||
|
||||
/**
|
||||
* the site to delete, may not be the same site as referenced by $site_id
|
||||
* the site to delete, must not be the same site as referenced by $site_id
|
||||
*/
|
||||
$site_to_delete = '<_id value of the site>';
|
||||
|
||||
@ -36,6 +36,6 @@ $loginresults = $unifi_connection->login();
|
||||
$results = $unifi_connection->delete_site($site_to_delete);
|
||||
|
||||
/**
|
||||
* provide feedback (the newly created vouchers) in json format
|
||||
* provide feedback in json format
|
||||
*/
|
||||
echo json_encode($vouchers, JSON_PRETTY_PRINT);
|
||||
echo json_encode($results, JSON_PRETTY_PRINT);
|
||||
|
Loading…
Reference in New Issue
Block a user