Skip to content

Commit 76de97f

Browse files
committed
finished
1 parent 94bcd1f commit 76de97f

File tree

1 file changed

+8
-2
lines changed
  • exercises/13-post-request-body

1 file changed

+8
-2
lines changed
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
import requests
22

3-
resp = requests.post("https://assets.breatheco.de/apis/fake/sample/save-project-json.php")
4-
print(resp.text)
3+
url = "https://assets.breatheco.de/apis/fake/sample/save-project-json.php"
4+
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

Comments
 (0)