Commit Graph

197 Commits

Author SHA1 Message Date
malle-pietje
19dc76ddfb consistent use of "PHP DocBlocks" 2024-11-28 12:24:35 +01:00
malle-pietje
3a1d1ff0cd minor tweak to example 2024-11-28 12:21:42 +01:00
malle-pietje
8eeeb447c9 reformatted Exception handling example 2024-11-28 12:19:33 +01:00
malle-pietje
8acaa694ca - updated the README file
- updated @throws tags in the doc blocks to reflect the correct exception classes where necessary, in other cases "Exception" is mentioned
- minor changes
- bumped version to 2.0.2
2024-11-28 12:11:08 +01:00
malle-pietje
d81a371239 further improvements to the README.md file and the list_alarms.php example 2024-11-26 12:04:10 +01:00
malle-pietje
7a47bda1c0 updates to README.md to explain how to get older 1.x versions. 2024-11-26 11:53:59 +01:00
malle-pietje
fb493f4dc8 updated the PHP example in the README to include the Exception classes imports 2024-11-26 11:27:06 +01:00
malle-pietje
1f19891d90 updated the README file
updated the `examples/list_alarms.php` file to demonstrate Exception handling
2024-11-25 17:56:06 +01:00
malle-pietje
9a2432f067 added Exception classes
implement Exceptions in the main class
2024-11-25 17:34:18 +01:00
malle-pietje
97510ec5ec prepared new version number 2024-11-24 11:58:49 +01:00
malle-pietje
9726378e3c bumped version to 1.1.101 2024-11-15 10:33:11 +01:00
malle-pietje
494375f8b5 - added a private property $cookies_created_at to store the timestamp when the cookies were created/updated.
- added a getter method get_cookies_created_at() to return the timestamp when the cookies were created/updated.
  This information can be useful to determine how old the cookies are.
- minor comments clean up
2024-11-15 10:31:10 +01:00
malle-pietje
3dbc24daca further tweaks 2024-11-04 13:43:57 +01:00
malle-pietje
93d1d8ec3f tweaked hyperlink 2024-11-04 13:38:18 +01:00
malle-pietje
b8620f7672 changed link to hyperlink 2024-11-04 13:37:01 +01:00
malle-pietje
1e2e709d4a inserted link to installation instructions 2024-11-04 13:34:41 +01:00
malle-pietje
472d2eaa68 restructured and updated supported versions info 2024-11-04 13:32:34 +01:00
malle-pietje
1522992e49 bumped version to 1.1.100
fixed incorrect return type for `create_voucher()`, reported by @pa-
2024-10-29 12:14:00 +01:00
malle-pietje
70f6a374e2 - added get_system_log() method to get data from the system logs, returns pages results
- minor formatting changes
2024-10-23 13:30:34 +02:00
malle-pietje
ff9e6f0225 merged #244 for a small change to the start_rolling_upgrade() method, contributed by @Jacobtims
minor additional change to allow changes to the payload of the `start_rolling_upgrade()` method
2024-10-17 16:41:45 +02:00
Jacob Timmerman
00a637dbc4
Add "uxg" to start_rolling_upgrade payload (#244)
* Fix payload start_rolling_upgrade method

* Add "uxg" to start_rolling_upgrade payload
2024-10-17 16:31:25 +02:00
malle-pietje
6498b0255b Merge branch 'master' of github.com:Art-of-WiFi/UniFi-API-client
merging #243
2024-10-17 14:56:47 +02:00
malle-pietje
05e791bcf0 minor changes 2024-10-17 14:56:36 +02:00
Jacob Timmerman
192a1262c3
Fix payload start_rolling_upgrade method (#243) 2024-10-17 14:55:54 +02:00
malle-pietje
30056f50fc - bumped version to 1.1.96
- removed @version tag in docblock as it contained redundant information
- merged #241 which adds a method to download a generated backup, (contributed by @Jacobtims)
2024-10-14 14:34:48 +02:00
Jacob Timmerman
d040c512a7
Add method to download generated backup (#241)
Merged PR #241
2024-10-14 14:31:44 +02:00
malle-pietje
b633fa54c7 added ability top determine attributes to fetch with AP and site stats
general minor clean up
bumped version to 1.1.95
2024-10-07 12:54:19 +02:00
malle-pietje
5327d0c534 minor changes 2024-10-07 10:39:48 +02:00
malle-pietje
f1fc80f34f API client class v1.1.94
- minor fix based on Scrutinizer feedback
- re-added `update_admin()` method to the class; for some reason, the merge of #228 was not successful
2024-08-12 10:24:03 +02:00
malle-pietje
f82d1a6b64 removed exit following suggestion from Scrutinizer 2024-08-08 17:56:33 +02:00
malle-pietje
6f6e80e862 cleanup some comments/doc blocks 2024-08-08 17:45:03 +02:00
malle-pietje
4fefc11761 simplified the contructor by assigning default values to properties within the argument list 2024-08-08 17:37:33 +02:00
malle-pietje
0db5effe6f minor fix to return type hinting based on feedback from Scrutinizer 2024-08-07 16:26:54 +02:00
malle-pietje
fd69d844a6 API client class v1.1.93
- added the migrate_device() method to migrate one or more devices from one controller to another
- added the cancel_migrate_device() method to cancel the migration for one or more devices
- added the upgrade_all_devices() method to upgrade all devices of a selected type to the latest firmware version
- changed the force_provision() method to allow for multiple MAC addresses to be passed as a parameter
- minor changes to a number of doc-blocks
- general changes for improved consistency and readability
2024-08-07 16:03:09 +02:00
malle-pietje
12b85ce9db moved 2 properties to constants which seems more appropriate
reformatted single-line comments
2024-08-06 12:30:47 +02:00
malle-pietje
54ec631d4b added a new example demonstrating the change of site settings 2024-08-04 15:35:26 +02:00
Jacob Timmerman
fdea77fce0
Add days paramater to generate_backup method (#232) 2024-08-02 17:12:29 +02:00
malle-pietje
108ddd3995 further cleanup of notes in doc blocks 2024-07-31 11:16:02 +02:00
malle-pietje
63600f4da1 - added delete_admin()` method, contributed by @Jacobtims
- reformatting of notes in the doc blocks
2024-07-31 10:55:21 +02:00
malle-pietje
20aa3e1377 merging PR #228 2024-07-31 10:25:02 +02:00
malle-pietje
d36a088101 API client class v1.1.90
- remove existing x-csrf-token headers before adding a new one, UniFi OS does not like multiple x-csrf-tokens in the same request
2024-02-27 18:48:41 +01:00
malle-pietje
007117cbfc API client class v1.1.89
- added `create_tag()`, `set_tagged_devices()`, `get_tag()`, and `delete_tag()` methods to manage tags, contributed by @brenard, #205
2024-02-11 17:24:31 +01:00
malle-pietje
7e60ce3e87 API client class v1.1.88
- added list_fingerprint_devices() method to list fingerprints for clients devices, contributed by @dream-rhythm, #213
- minor code cleanup
2024-02-11 14:46:30 +01:00
malle-pietje
83d4f121ed API client class v1.1.87
- further code cleanup and refactoring to pass more phpstan tests
2024-02-11 12:33:37 +01:00
malle-pietje
bd39c325d2 API client class v1.1.86
- fixes issue with curl_init() returning CurlHandle class objects instead of curl handlers with PHP 8 and higher
2024-02-10 13:26:47 +01:00
malle-pietje
4b175ddf9b API client class v1.1.85
- removed unnecessary type casting in several methods
- fixed return type hinting in several methods where return type would be an array|bool instead of just array
- relaxed parameter type hinting in the constructor to allow for null values for several parameters ($site and $version) that have sensible defaults, reported by @pbksol
- using phpstan, the class now passes level 5 checks
2024-02-10 12:13:00 +01:00
malle-pietje
48482d661a API client class v1.1.84
- PHP 7.4 is now the minimum required version
- updated the code for 7.4. specific features such as parameter type hinting, return types, etc.
- added the ability to the constructor to change the key that is used to store the unificookie in the session,
  ($_SESSION['unificookie'] is used by default), this is useful when running multiple applications on the same server
2024-02-09 18:11:43 +01:00
malle-pietje
563739345c applied tweaks to the README file 2024-01-05 11:08:06 +01:00
malle-pietje
fdc5f06765 applied tweaks to the README file 2024-01-05 11:04:39 +01:00
malle-pietje
35b2fb37f3 applied tweaks to the README file 2024-01-05 11:02:38 +01:00