mirror of
https://github.com/LukeHagar/plex-sdk-docs.git
synced 2025-12-06 20:47:46 +00:00
ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.136.1
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
{/* Start Python Custom HTTP Client */}
|
||||
The Python SDK makes API calls using the (requests)[https://pypi.org/project/requests/] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.
|
||||
The Python SDK makes API calls using the [requests](https://pypi.org/project/requests/) HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.
|
||||
|
||||
For example, you could specify a header for every request that this sdk makes as follows:
|
||||
```python
|
||||
import sdk
|
||||
import plex_api
|
||||
import requests
|
||||
|
||||
http_client = requests.Session()
|
||||
http_client.headers.update({'x-custom-header': 'someValue'})
|
||||
s = sdk.SDK(client: http_client)
|
||||
s = plex_api.PlexAPI(client: http_client)
|
||||
```
|
||||
{/* End Python Custom HTTP Client */}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
## Custom HTTP Client
|
||||
import LanguageSelector from 'src/components/LanguageSelector';
|
||||
import { H2 } from "src/components/TextHeaderWrapper";
|
||||
|
||||
<H2>Custom HTTP Client <LanguageSelector/></H2>
|
||||
|
||||
{/* render custom_http_client */}
|
||||
@@ -6,9 +6,9 @@ Handling errors in this SDK should largely match your expectations. All operati
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
## Errors
|
||||
import LanguageSelector from 'src/components/LanguageSelector';
|
||||
import { H2 } from "src/components/TextHeaderWrapper";
|
||||
|
||||
<H2>Errors <LanguageSelector/></H2>
|
||||
|
||||
{/* render errors */}
|
||||
@@ -1,5 +1,5 @@
|
||||
{/* Start Python Installation */}
|
||||
```bash
|
||||
pip install openapi
|
||||
pip install plexpy
|
||||
```
|
||||
{/* End Python Installation */}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
## Installation
|
||||
import LanguageSelector from 'src/components/LanguageSelector';
|
||||
import { H2 } from "src/components/TextHeaderWrapper";
|
||||
|
||||
<H2>Installation <LanguageSelector/></H2>
|
||||
|
||||
{/* render installation */}
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python CancelServerActivities.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetServerActivities.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetButlerTasks.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python StartAllTasks.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python StartTask.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python StopAllTasks.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python StopTask.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetGlobalHubs.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetLibraryHubs.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python DeleteLibrary.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetCommonLibraryItems.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetFileHash.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetLatestLibraryItems.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetLibraries.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetLibrary.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetLibraryItems.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetMetadata.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetMetadataChildren.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetOnDeck.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetRecentlyAdded.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python RefreshLibrary.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python EnablePaperTrail.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python LogLine.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python LogMultiLine.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python MarkPlayed.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python MarkUnplayed.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python UpdatePlayProgress.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python AddPlaylistContents.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python ClearPlaylistContents.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python CreatePlaylist.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python DeletePlaylist.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetPlaylist.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetPlaylistContents.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetPlaylists.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python UpdatePlaylist.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python UploadPlaylist.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetSearchResults.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python PerformSearch.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python PerformVoiceSearch.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetSourceConnectionInformation.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetTransientToken.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetAvailableClients.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetDevices.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetMyPlexAccount.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetResizedPhoto.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetServerCapabilities.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetServerIdentity.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetServerList.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetServerPreferences.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetSessionHistory.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetSessions.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetTranscodeSessions.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python StopTranscodeSession.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python ApplyUpdates.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python CheckForUpdates.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetUpdateStatus.py
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetTimeline.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<CH.Code>
|
||||
```python StartUniversalTranscode.py
|
||||
import sdk
|
||||
from sdk.models import operations
|
||||
import plex_api
|
||||
from plex_api.models import operations
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -7,9 +7,9 @@ This SDK supports the following security scheme globally:
|
||||
|
||||
To authenticate with the API the `access_token` parameter must be set when initializing the SDK client instance. For example:
|
||||
```python
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
## Security Options
|
||||
import LanguageSelector from 'src/components/LanguageSelector';
|
||||
import { H2 } from "src/components/TextHeaderWrapper";
|
||||
|
||||
<H2>Security Options <LanguageSelector/></H2>
|
||||
|
||||
{/* render security_options */}
|
||||
@@ -9,10 +9,10 @@ You can override the default server globally by passing a server index to the `s
|
||||
#### Example
|
||||
|
||||
```python
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
server_idx=1,
|
||||
s = plex_api.PlexAPI(
|
||||
server_idx=0,
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
@@ -35,10 +35,10 @@ Some of the server options above contain variables. If you want to set the value
|
||||
|
||||
The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
|
||||
```python
|
||||
import sdk
|
||||
import plex_api
|
||||
|
||||
s = sdk.SDK(
|
||||
server_url="http://10.10.10.47:32400",
|
||||
s = plex_api.PlexAPI(
|
||||
server_url="{protocol}://{ip}:{port}",
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
## Server Options
|
||||
import LanguageSelector from 'src/components/LanguageSelector';
|
||||
import { H2 } from "src/components/TextHeaderWrapper";
|
||||
|
||||
<H2>Server Options <LanguageSelector/></H2>
|
||||
|
||||
{/* render server_options */}
|
||||
Reference in New Issue
Block a user