Created
September 24, 2019 17:28
-
-
Save Trafitto/1a19d19e6041f9cec9943ad1b06cf4b7 to your computer and use it in GitHub Desktop.
Revisions
-
Trafitto created this gist
Sep 24, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ import requests BASE_URL = "http://bestemmie.org/api/{endpoint}" params = { "bestemmia": "Dio cane" } response = requests.post(BASE_URL.format(endpoint="bestemmie/"), params) response.raise_for_status() ''' Return 204 no content '''