mirror of
https://github.com/LukeHagar/plex-sdk-docs.git
synced 2025-12-07 12:37:44 +00:00
ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.148.0
This commit is contained in:
@@ -10,34 +10,32 @@ s = plex_api.PlexAPI(
|
||||
|
||||
res = s.server.get_available_clients()
|
||||
|
||||
if res.classes is not None:
|
||||
if res.object is not None:
|
||||
# handle response
|
||||
pass
|
||||
```
|
||||
---
|
||||
|
||||
```json Example Response
|
||||
[
|
||||
{
|
||||
"MediaContainer": {
|
||||
"size": 1,
|
||||
"Server": [
|
||||
{
|
||||
"name": "iPad",
|
||||
"host": "10.10.10.102",
|
||||
"address": "10.10.10.102",
|
||||
"port": 32500,
|
||||
"machineIdentifier": "A2E901F8-E016-43A7-ADFB-EF8CA8A4AC05",
|
||||
"version": "8.17",
|
||||
"protocol": "plex",
|
||||
"product": "Plex for iOS",
|
||||
"deviceClass": "tablet",
|
||||
"protocolVersion": 2,
|
||||
"protocolCapabilities": "playback,playqueues,timeline,provider-playback"
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
"MediaContainer": {
|
||||
"size": 1,
|
||||
"Server": [
|
||||
{
|
||||
"name": "iPad",
|
||||
"host": "10.10.10.102",
|
||||
"address": "10.10.10.102",
|
||||
"port": 32500,
|
||||
"machineIdentifier": "A2E901F8-E016-43A7-ADFB-EF8CA8A4AC05",
|
||||
"version": "8.17",
|
||||
"protocol": "plex",
|
||||
"product": "Plex for iOS",
|
||||
"deviceClass": "tablet",
|
||||
"protocolVersion": 2,
|
||||
"protocolCapabilities": "playback,playqueues,timeline,provider-playback"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</CH.Code>
|
||||
|
||||
@@ -10,7 +10,7 @@ s = plex_api.PlexAPI(
|
||||
|
||||
res = s.server.get_server_preferences()
|
||||
|
||||
if res.status_code == 200:
|
||||
if res.object is not None:
|
||||
# handle response
|
||||
pass
|
||||
```
|
||||
@@ -18,13 +18,10 @@ if res.status_code == 200:
|
||||
|
||||
```json Example Response
|
||||
{
|
||||
"errors": [
|
||||
{
|
||||
"code": 1001,
|
||||
"message": "User could not be authenticated",
|
||||
"status": 401
|
||||
}
|
||||
]
|
||||
"MediaContainer": {
|
||||
"size": 161,
|
||||
"Setting": []
|
||||
}
|
||||
}
|
||||
```
|
||||
</CH.Code>
|
||||
|
||||
Reference in New Issue
Block a user