mirror of
https://github.com/LukeHagar/plex-sdk-docs.git
synced 2025-12-06 12:37:46 +00:00
24 lines
477 B
Plaintext
24 lines
477 B
Plaintext
{/* Start Python Security Options */}
|
|
### Per-Client Security Schemes
|
|
|
|
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
|
|
|
|
s = sdk.SDK(
|
|
access_token="<YOUR_API_KEY_HERE>",
|
|
)
|
|
|
|
|
|
res = s.server.get_server_capabilities()
|
|
|
|
if res.object is not None:
|
|
# handle response
|
|
pass
|
|
```
|
|
{/* End Python Security Options */}
|