mirror of
https://github.com/LukeHagar/plex-sdk-docs.git
synced 2025-12-06 20:47:46 +00:00
ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.136.1
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
{/* Start Python Custom HTTP Client */}
|
||||
The Python SDK makes API calls using the (requests)[https://pypi.org/project/requests/] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.
|
||||
The Python SDK makes API calls using the [requests](https://pypi.org/project/requests/) HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.
|
||||
|
||||
For example, you could specify a header for every request that this sdk makes as follows:
|
||||
```python
|
||||
import sdk
|
||||
import plex_api
|
||||
import requests
|
||||
|
||||
http_client = requests.Session()
|
||||
http_client.headers.update({'x-custom-header': 'someValue'})
|
||||
s = sdk.SDK(client: http_client)
|
||||
s = plex_api.PlexAPI(client: http_client)
|
||||
```
|
||||
{/* End Python Custom HTTP Client */}
|
||||
|
||||
Reference in New Issue
Block a user