You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`ApiMode.LEGACY`: original `/cgi/json-req` API with XPath support
135
+
-`ApiMode.REST`: newer `/api/v1/*` API used by newer firmwares
136
+
-`ApiMode.AUTO` (default): tries legacy first, then falls back to REST when the legacy endpoint is unavailable
137
+
138
+
When REST mode is active, high-level helpers like `get_device_info()` and `get_hosts()` are supported. XPath-based methods (`get_value_by_xpath`, `set_value_by_xpath`, `get_values_by_xpaths`) are legacy-only.
139
+
122
140
### Determine the EncryptionMethod
123
141
124
142
If you are not sure which encryption method to use, you can leave it empty or pass `None` and use `get_encryption_method` to determine the encryption method.
0 commit comments