mirror of
https://github.com/LukeHagar/plexpy.git
synced 2025-12-06 12:47:44 +00:00
11 lines
207 B
Python
11 lines
207 B
Python
from os import getenv
|
|
from pprint import pprint
|
|
from plexsdk import PlexSDK
|
|
|
|
sdk = PlexSDK()
|
|
sdk.set_api_key(getenv("PLEXSDK_API_KEY"))
|
|
|
|
results = sdk.server.get_server_capabilities()
|
|
|
|
pprint(vars(results))
|