File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,8 @@ def webpush(subscription_info,
307
307
vapid_claims = None ,
308
308
content_encoding = "aesgcm" ,
309
309
curl = False ,
310
- timeout = None ):
310
+ timeout = None ,
311
+ ttl = 0 ):
311
312
"""
312
313
One call solution to endcode and send `data` to the endpoint
313
314
contained in `subscription_info` using optional VAPID auth headers.
@@ -347,6 +348,8 @@ def webpush(subscription_info,
347
348
:type curl: bool
348
349
:param timeout: POST requests timeout
349
350
:type timeout: float or tuple
351
+ :param ttl: Time To Live
352
+ :type ttl: int
350
353
:return requests.Response or string
351
354
352
355
"""
@@ -371,6 +374,7 @@ def webpush(subscription_info,
371
374
result = WebPusher (subscription_info ).send (
372
375
data ,
373
376
vapid_headers ,
377
+ ttl = ttl ,
374
378
content_encoding = content_encoding ,
375
379
curl = curl ,
376
380
timeout = timeout ,
You can’t perform that action at this time.
0 commit comments