mirror of
https://github.com/LukeHagar/plexpy.git
synced 2025-12-06 04:20:52 +00:00
ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.193.4
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
# Security
|
||||
(*security*)
|
||||
# Authentication
|
||||
(*authentication*)
|
||||
|
||||
## Overview
|
||||
|
||||
API Calls against Security for Plex Media Server
|
||||
API Calls regarding authentication for Plex Media Server
|
||||
|
||||
|
||||
### Available Operations
|
||||
@@ -27,7 +27,7 @@ s = plex_api.PlexAPI(
|
||||
)
|
||||
|
||||
|
||||
res = s.security.get_transient_token(type=operations.GetTransientTokenQueryParamType.DELEGATION, scope=operations.Scope.ALL)
|
||||
res = s.authentication.get_transient_token(type=operations.GetTransientTokenQueryParamType.DELEGATION, scope=operations.Scope.ALL)
|
||||
|
||||
if res.status_code == 200:
|
||||
# handle response
|
||||
@@ -68,7 +68,7 @@ s = plex_api.PlexAPI(
|
||||
)
|
||||
|
||||
|
||||
res = s.security.get_source_connection_information(source='server://client-identifier')
|
||||
res = s.authentication.get_source_connection_information(source='server://client-identifier')
|
||||
|
||||
if res.status_code == 200:
|
||||
# handle response
|
||||
@@ -20,9 +20,7 @@ Retrieve a Pin from Plex.tv for authentication flows
|
||||
```python
|
||||
import plex_api
|
||||
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
s = plex_api.PlexAPI()
|
||||
|
||||
|
||||
res = s.plex.get_pin(x_plex_client_identifier='<value>', strong=False)
|
||||
@@ -60,9 +58,7 @@ Retrieve an Access Token from Plex.tv after the Pin has already been authenticat
|
||||
```python
|
||||
import plex_api
|
||||
|
||||
s = plex_api.PlexAPI(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
s = plex_api.PlexAPI()
|
||||
|
||||
|
||||
res = s.plex.get_token(pin_id='<value>', x_plex_client_identifier='<value>')
|
||||
|
||||
Reference in New Issue
Block a user