Files
plex-sdk-docs/content/pages/01-reference/python/security_options/_snippet.mdx
2024-01-01 15:47:37 -06:00

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 */}