Skip to content
Myr

Changed phrasing to be a little clearer.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Smiley Barry · committed by Smiley Barry · parent 5a9097d · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/user/quickstart.rst+2 added-2 removed
228 unmodified lines
229 >>> payload = {'some': 'data'}230231 >>> r = requests.post(url, data=json.dumps(payload))232 233You can use the `json` parameter (added in version 2.4.2) to avoid encoding the234data yourself:233Instead of encoding the ``dict`` yourself, you can also pass it directly using234the ``json`` parameter (added in version 2.4.2) and it will be encoded automatically:235236 >>> import json237 >>> url = 'https://api.github.com/some/endpoint'238 >>> payload = {'some': 'data'}
243 unmodified lines