File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -90,13 +90,13 @@ try {
9090 '2024-07-15T07:01:13Z'
9191 );
9292 print_r($devices);
93+
94+ echo 'Effective URI: ' . $unifiClient->getEffectiveUri() . PHP_EOL;
95+ echo 'Transfer time: ' . $unifiClient->getTransferTime() . ' seconds' . PHP_EOL;
96+ echo 'Response status: ' . $unifiClient->getResponseStatusCode() . PHP_EOL;
9397} catch (Exception $e) {
9498 echo "Error: " . $e->getMessage() . "\n";
9599}
96-
97- echo 'Effective URI: ' . $unifiClient->getEffectiveUri() . PHP_EOL;
98- echo 'Transfer time: ' . $unifiClient->getTransferTime() . ' seconds' . PHP_EOL;
99- echo 'Response status: ' . $unifiClient->getResponseStatusCode() . PHP_EOL;
100100```
101101
102102## Getter and Setter Methods
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class UniFiClient
3333 private static ?UniFiClient $ instance = null ;
3434
3535 /** @var string Version of the UniFi Cloud API client */
36- private const VERSION = '1.0.4 ' ;
36+ private const VERSION = '1.0.5 ' ;
3737
3838 /** @var Client Guzzle HTTP client instance */
3939 private Client $ client ;
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function __construct(UniFiClient $client)
4141 * If time is provided, filters devices by the specified time.
4242 *
4343 * @param array<string> $hostIds Optional. An array of host IDs to filter the devices.
44- * @param mixed $time Optional. A time parameter to filter the devices.
44+ * @param null|string $time Optional. A time parameter to filter the devices.
4545 * @return array The list of devices, format can vary based on implementation.
4646 * @throws Exception If there is an error in the HTTP request, or if the host IDs are not strings.
4747 */
You can’t perform that action at this time.
0 commit comments