We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94bcd1f commit 76de97fCopy full SHA for 76de97f
exercises/13-post-request-body/app.py
@@ -1,4 +1,10 @@
1
import requests
2
3
-resp = requests.post("https://assets.breatheco.de/apis/fake/sample/save-project-json.php")
4
-print(resp.text)
+url = "https://assets.breatheco.de/apis/fake/sample/save-project-json.php"
+myjson = {
5
+ "id":2323,
6
+ "title": "Very big project"
7
+ }
8
+
9
+response = requests.post(url, json = myjson)
10
+print(response.text)
0 commit comments