mirror of
https://github.com/LukeHagar/plex-sdk-docs.git
synced 2025-12-09 20:47:47 +00:00
Initial Commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
## Get Available Clients
|
||||
|
||||
Get Available Clients
|
||||
@@ -0,0 +1,2 @@
|
||||
{/* Autogenerated DO NOT EDIT */}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{/* Autogenerated DO NOT EDIT */}
|
||||
import GetAvailableClientsResponse from "/content/types/models/operations/get_available_clients_response/python.mdx"
|
||||
import Collapsible from "/src/components/Collapsible";
|
||||
import Labels from "/src/lib/labels";
|
||||
|
||||
##### *{`operations.GetAvailableClientsResponse`}*
|
||||
<Collapsible defaultOpen openLabel={Labels.showProperties} closeLabel={Labels.hideProperties}>
|
||||
<GetAvailableClientsResponse/>
|
||||
</Collapsible>
|
||||
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetAvailableClients.py
|
||||
import sdk
|
||||
|
||||
s = sdk.SDK(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
res = s.server.get_available_clients()
|
||||
|
||||
if res.classes 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
```
|
||||
</CH.Code>
|
||||
@@ -0,0 +1,12 @@
|
||||
import CurlHeader from './_header.mdx';
|
||||
import SDKHeader from './_header.mdx';
|
||||
import OperationHeader from '/src/components/OperationHeader';
|
||||
|
||||
###### *Server*
|
||||
|
||||
<OperationHeader
|
||||
sdkHeader={<SDKHeader />}
|
||||
curlHeader={<CurlHeader />}
|
||||
/>
|
||||
|
||||
{/* render operation */}
|
||||
Reference in New Issue
Block a user