Skip to content

Commit dd4bc68

Browse files
Update Notecard API from upstream schema changes (f1ab0e95ca2d0b987fc1bb1bfbfebe4982de4aa4) (#147)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent e6bddca commit dd4bc68

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

notecard/web.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def post(card, async_=None, binary=None, body=None, content=None, file=None, max
113113
route (str): Alias for a Proxy Route in Notehub.
114114
seconds (int): If specified, overrides the default 90 second timeout.
115115
status (str): A 32-character hex-encoded MD5 sum of the payload or payload fragment. Used by Notehub to perform verification upon receipt.
116-
total (int): When sending large payloads to Notehub in fragments across several `web.post` requests, the total size, in bytes, of the binary payload across all fragments.
116+
total (int): When using the `application/octet-stream` content type, you may send large payloads to Notehub in fragments spanning several `web.post` requests by using `offset` (see above) and `total`. The `total` field indicates the total size, in bytes (10MB max), of the payload across all fragments.
117117
verify (bool): `true` to request verification from Notehub once the payload or payload fragment is received. Automatically set to `true` when `status` is supplied.
118118
119119
Returns:
@@ -172,7 +172,7 @@ def put(card, async_=None, binary=None, body=None, content=None, file=None, max=
172172
route (str): Alias for a Proxy Route in Notehub.
173173
seconds (int): If specified, overrides the default 90 second timeout.
174174
status (str): A 32-character hex-encoded MD5 sum of the payload or payload fragment. Used by Notehub to perform verification upon receipt.
175-
total (int): When sending large payloads to Notehub in fragments across several `web.put` requests, the total size, in bytes, of the binary payload across all fragments.
175+
total (int): When using the `application/octet-stream` content type, you may send large payloads to Notehub in fragments spanning several `web.put` requests by using `offset` (see above) and `total`. The `total` field indicates the total size, in bytes (10MB max), of the payload across all fragments.
176176
verify (bool): `true` to request verification from Notehub once the payload or payload fragment is received. Automatically set to `true` when `status` is supplied.
177177
178178
Returns:

0 commit comments

Comments
 (0)