mirror of
https://github.com/LukeHagar/plexpy.git
synced 2025-12-09 20:57:44 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.399.2
This commit is contained in:
@@ -28,7 +28,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.activities.get_server_activities()
|
||||
@@ -69,7 +73,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.activities.cancel_server_activities(activity_uuid="25b71ed5-0f9d-461c-baa7-d404e9e10d3e")
|
||||
|
||||
@@ -26,7 +26,11 @@ from plex_api_client.models import operations
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.authentication.get_transient_token(type_=operations.GetTransientTokenQueryParamType.DELEGATION, scope=operations.Scope.ALL)
|
||||
@@ -71,7 +75,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.authentication.get_source_connection_information(source="server://client-identifier")
|
||||
@@ -113,7 +121,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.authentication.get_token_details()
|
||||
@@ -154,10 +166,14 @@ Sign in user with username and password and return user data with Plex authentic
|
||||
from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.authentication.post_users_sign_in_data(x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40", request_body={
|
||||
res = s.authentication.post_users_sign_in_data(client_id="gcgzw5rz2xovp84b4vha3a40", request_body={
|
||||
"login": "username@email.com",
|
||||
"password": "password123",
|
||||
"verification_code": "123456",
|
||||
@@ -173,7 +189,7 @@ if res.user_plex_account is not None:
|
||||
|
||||
| Parameter | Type | Required | Description | Example |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `x_plex_client_identifier` | *Optional[str]* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
||||
| `client_id` | *Optional[str]* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
||||
| `request_body` | [Optional[operations.PostUsersSignInDataRequestBody]](../../models/operations/postuserssignindatarequestbody.md) | :heavy_minus_sign: | Login credentials | |
|
||||
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | |
|
||||
| `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
|
||||
|
||||
@@ -25,7 +25,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.butler.get_butler_tasks()
|
||||
@@ -71,7 +75,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.butler.start_all_tasks()
|
||||
@@ -113,7 +121,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.butler.stop_all_tasks()
|
||||
@@ -160,7 +172,11 @@ from plex_api_client.models import operations
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.butler.start_task(task_name=operations.TaskName.CLEAN_OLD_BUNDLES)
|
||||
@@ -204,7 +220,11 @@ from plex_api_client.models import operations
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.butler.stop_task(task_name=operations.PathParamTaskName.BACKUP_DATABASE)
|
||||
|
||||
@@ -22,7 +22,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.hubs.get_global_hubs()
|
||||
@@ -66,7 +70,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.hubs.get_library_hubs(section_id=6728.76)
|
||||
|
||||
@@ -32,7 +32,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.library.get_file_hash(url="file://C:\Image.png&type=13")
|
||||
@@ -76,7 +80,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.library.get_recently_added(x_plex_container_start=0, x_plex_container_size=50)
|
||||
@@ -125,7 +133,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.library.get_all_libraries()
|
||||
@@ -205,7 +217,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.library.get_library_details(section_key=9518)
|
||||
@@ -248,7 +264,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.library.delete_library(section_key=9518)
|
||||
@@ -311,7 +331,11 @@ from plex_api_client.models import operations
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.library.get_library_items(request={
|
||||
@@ -363,7 +387,11 @@ from plex_api_client.models import operations
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.library.get_refresh_library_metadata(section_key=9518, force=operations.Force.ONE)
|
||||
@@ -425,7 +453,11 @@ from plex_api_client.models import operations
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.library.get_search_library(section_key=9518, type_=operations.QueryParamType.TWO)
|
||||
@@ -469,7 +501,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.library.get_meta_data_by_rating_key(rating_key=9518)
|
||||
@@ -512,7 +548,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.library.get_metadata_children(rating_key=1539.14, include_elements="Stream")
|
||||
@@ -557,7 +597,11 @@ from plex_api_client.models import operations
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.library.get_top_watched_content(type_=operations.GetTopWatchedContentQueryParamType.TWO, include_guids=1)
|
||||
@@ -601,7 +645,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.library.get_on_deck()
|
||||
|
||||
@@ -25,7 +25,11 @@ from plex_api_client.models import operations
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.log.log_line(level=operations.Level.THREE, message="Test log message", source="Postman")
|
||||
@@ -90,7 +94,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.log.log_multi_line(request="level=4&message=Test%20message%201&source=postman\n" +
|
||||
@@ -135,7 +143,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.log.enable_paper_trail()
|
||||
|
||||
@@ -25,7 +25,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.media.mark_played(key=59398)
|
||||
@@ -67,7 +71,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.media.mark_unplayed(key=59398)
|
||||
@@ -110,7 +118,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.media.update_play_progress(key="<key>", time=90000, state="played")
|
||||
@@ -154,7 +166,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.media.get_banner_image(request={
|
||||
@@ -203,7 +219,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.media.get_thumb_image(request={
|
||||
|
||||
@@ -36,7 +36,11 @@ from plex_api_client.models import operations
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.playlists.create_playlist(request={
|
||||
@@ -83,7 +87,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.playlists.get_playlists()
|
||||
@@ -128,7 +136,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.playlists.get_playlist(playlist_id=4109.48)
|
||||
@@ -171,7 +183,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.playlists.delete_playlist(playlist_id=216.22)
|
||||
@@ -214,7 +230,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.playlists.update_playlist(playlist_id=3915)
|
||||
@@ -263,7 +283,11 @@ from plex_api_client.models import operations
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.playlists.get_playlist_contents(playlist_id=5004.46, type_=operations.GetPlaylistContentsQueryParamType.TWO)
|
||||
@@ -307,7 +331,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.playlists.clear_playlist_contents(playlist_id=1893.18)
|
||||
@@ -351,7 +379,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.playlists.add_playlist_contents(playlist_id=8502.01, uri="server://12345/com.plexapp.plugins.library/library/metadata/1", play_queue_id=123)
|
||||
@@ -397,7 +429,11 @@ from plex_api_client.models import operations
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.playlists.upload_playlist(path="/home/barkley/playlist.m3u", force=operations.QueryParamForce.ZERO)
|
||||
|
||||
@@ -27,7 +27,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.plex.get_companions_data()
|
||||
@@ -69,7 +73,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.plex.get_user_friends()
|
||||
@@ -110,7 +118,11 @@ Returns the geolocation and locale data of the caller
|
||||
from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.plex.get_geo_data()
|
||||
@@ -152,7 +164,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.plex.get_home_data()
|
||||
@@ -194,10 +210,14 @@ from plex_api_client.models import operations
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.plex.get_server_resources(x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40", include_https=operations.IncludeHTTPS.ONE, include_relay=operations.IncludeRelay.ONE, include_i_pv6=operations.IncludeIPv6.ONE)
|
||||
res = s.plex.get_server_resources(client_id="gcgzw5rz2xovp84b4vha3a40", include_https=operations.IncludeHTTPS.ONE, include_relay=operations.IncludeRelay.ONE, include_i_pv6=operations.IncludeIPv6.ONE)
|
||||
|
||||
if res.plex_devices is not None:
|
||||
# handle response
|
||||
@@ -209,7 +229,7 @@ if res.plex_devices is not None:
|
||||
|
||||
| Parameter | Type | Required | Description | Example |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `x_plex_client_identifier` | *Optional[str]* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
||||
| `client_id` | *Optional[str]* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
||||
| `include_https` | [Optional[operations.IncludeHTTPS]](../../models/operations/includehttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
|
||||
| `include_relay` | [Optional[operations.IncludeRelay]](../../models/operations/includerelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
|
||||
| `include_i_pv6` | [Optional[operations.IncludeIPv6]](../../models/operations/includeipv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
|
||||
@@ -231,7 +251,7 @@ if res.plex_devices is not None:
|
||||
|
||||
## get_pin
|
||||
|
||||
Retrieve a Pin from Plex.tv for authentication flows
|
||||
Retrieve a Pin ID from Plex.tv to use for authentication flows
|
||||
|
||||
### Example Usage
|
||||
|
||||
@@ -239,10 +259,14 @@ Retrieve a Pin from Plex.tv for authentication flows
|
||||
from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.plex.get_pin(x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40", x_plex_product="Plex Web")
|
||||
res = s.plex.get_pin(request={})
|
||||
|
||||
if res.auth_pin_container is not None:
|
||||
# handle response
|
||||
@@ -252,13 +276,11 @@ if res.auth_pin_container is not None:
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description | Example |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `strong` | *Optional[bool]* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> | |
|
||||
| `x_plex_client_identifier` | *Optional[str]* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
||||
| `x_plex_product` | *Optional[str]* | :heavy_minus_sign: | N/A | Plex Web |
|
||||
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | |
|
||||
| `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
|
||||
| Parameter | Type | Required | Description |
|
||||
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
|
||||
| `request` | [operations.GetPinRequest](../../models/operations/getpinrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
||||
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
|
||||
| `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. |
|
||||
|
||||
### Response
|
||||
|
||||
@@ -282,10 +304,14 @@ Retrieve an Access Token from Plex.tv after the Pin has been authenticated
|
||||
from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.plex.get_token_by_pin_id(pin_id=408895, x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40")
|
||||
res = s.plex.get_token_by_pin_id(pin_id=408895, client_id="gcgzw5rz2xovp84b4vha3a40")
|
||||
|
||||
if res.auth_pin_container is not None:
|
||||
# handle response
|
||||
@@ -298,7 +324,7 @@ if res.auth_pin_container is not None:
|
||||
| Parameter | Type | Required | Description | Example |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `pin_id` | *int* | :heavy_check_mark: | The PinID to retrieve an access token for | |
|
||||
| `x_plex_client_identifier` | *Optional[str]* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
||||
| `client_id` | *Optional[str]* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
||||
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | |
|
||||
| `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
|
||||
|
||||
|
||||
@@ -35,7 +35,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.search.perform_search(query="dylan", limit=5)
|
||||
@@ -83,7 +87,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.search.perform_voice_search(query="dead+poop", limit=5)
|
||||
@@ -127,7 +135,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.search.get_search_results(query="110")
|
||||
|
||||
@@ -29,7 +29,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.server.get_server_capabilities()
|
||||
@@ -70,7 +74,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.server.get_server_preferences()
|
||||
@@ -111,7 +119,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.server.get_available_clients()
|
||||
@@ -152,7 +164,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.server.get_devices()
|
||||
@@ -192,7 +208,11 @@ This request is useful to determine if the server is online or offline
|
||||
from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.server.get_server_identity()
|
||||
@@ -232,7 +252,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.server.get_my_plex_account()
|
||||
@@ -275,7 +299,11 @@ from plex_api_client.models import operations
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.server.get_resized_photo(request={
|
||||
@@ -325,7 +353,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.server.get_media_providers(x_plex_token="CV5xoxjTpFKUzBTShsaf")
|
||||
@@ -367,7 +399,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.server.get_server_list()
|
||||
|
||||
@@ -24,7 +24,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.sessions.get_sessions()
|
||||
@@ -65,7 +69,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.sessions.get_session_history(sort="viewedAt:desc", account_id=1, filter_={}, library_section_id=12)
|
||||
@@ -110,7 +118,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.sessions.get_transcode_sessions()
|
||||
@@ -151,7 +163,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.sessions.stop_transcode_session(session_key="zz7llzqlx8w9vnrsbnwhbmep")
|
||||
|
||||
@@ -23,7 +23,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.statistics.get_statistics(timespan=4)
|
||||
@@ -65,7 +69,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.statistics.get_resources_statistics(timespan=4)
|
||||
@@ -107,7 +115,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.statistics.get_bandwidth_statistics(timespan=4)
|
||||
|
||||
@@ -24,7 +24,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.updater.get_update_status()
|
||||
@@ -66,7 +70,11 @@ from plex_api_client.models import operations
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.updater.check_for_updates(download=operations.Download.ONE)
|
||||
@@ -110,7 +118,11 @@ from plex_api_client.models import operations
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.updater.apply_updates(tonight=operations.Tonight.ONE, skip=operations.Skip.ONE)
|
||||
|
||||
@@ -23,7 +23,11 @@ from plex_api_client.models import operations
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.video.get_timeline(request={
|
||||
@@ -76,7 +80,11 @@ from plex_api_client import PlexAPI
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.video.start_universal_transcode(request={
|
||||
|
||||
@@ -22,7 +22,11 @@ from plex_api_client.models import operations
|
||||
|
||||
s = PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
x_plex_client_identifier="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_id="gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name="Plex Web",
|
||||
client_version="4.133.0",
|
||||
client_platform="Chrome",
|
||||
device_name="Linux",
|
||||
)
|
||||
|
||||
res = s.watchlist.get_watch_list(request={
|
||||
|
||||
Reference in New Issue
Block a user