mirror of
https://github.com/LukeHagar/plex-sdk-docs.git
synced 2025-12-06 12:37:46 +00:00
Initial Commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{/* 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 */}
|
||||
Reference in New Issue
Block a user