Bug fix
- Fix MediaLibrary class #235
- Duplicated
save()
method and introducedadd()
= POST andupdate()
= PUT methods
- Duplicated
- Fixed VideoConversionCard entity resource property references #231 by @shaun10
New
- Added new client options
timeout
andretry_on_timeouts
#234 Thanks to @ariarijp- You have now the control of a timeout duration specified by the
timeout
option (tuple). - You can now retry on timeouts using the
retry_on_timeouts
option (boolean) in addition to theretry_on_status
option (list).
- You have now the control of a timeout duration specified by the
client = Client(
CONSUMER_KEY,
CONSUMER_SECRET,
ACCESS_TOKEN,
ACCESS_TOKEN_SECRET,
options={
'handle_rate_limit': True,
'retry_max': 3,
'retry_delay': 5000,
'retry_on_status': [404, 500, 503],
'retry_on_timeouts': True,
'timeout': (1.0, 3.0) # https://2.python-requests.org/en/master/user/advanced/#timeouts
})
parameter | default | description |
---|---|---|
retry_on_timeouts
| False (boolean)
| Set True will catch the timeout error and retry the request.
|
timeout
| None
| You can specify either a single value OR a tuple. If a single value is specified, the timeout value will be applied to both the connect and the read timeouts. See https://2.python-requests.org/en/master/user/advanced/#timeouts for more details of the usage.
|