From f0aef8fe2d27ec6dc1c4889f1d2821fa56b9ffe6 Mon Sep 17 00:00:00 2001 From: FLAK-ZOSO Date: Tue, 28 Jun 2022 13:25:26 +0200 Subject: [PATCH] Notes/read --- Notes/read.md | 10 ++++++++++ Test.py | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 Notes/read.md diff --git a/Notes/read.md b/Notes/read.md new file mode 100644 index 0000000..40fcda0 --- /dev/null +++ b/Notes/read.md @@ -0,0 +1,10 @@ +# Response +```json +{ + "event": { + "evtCode": "NTTE", + "evtId": 17119297, + "evtText": "La classe oggi 2/04/22, esce alle 11.50." + } +} +``` \ No newline at end of file diff --git a/Test.py b/Test.py index 9c81d10..d8e7b80 100644 --- a/Test.py +++ b/Test.py @@ -25,9 +25,9 @@ def password_(): i_ = intestazione.copy() i_["Z-Auth-Token"] = token -print(json.dumps(requests.get( - "https://web.spaggiari.eu/rest/v1/students/{}/notes/all".format( - id_().removeprefix("S"), +print(json.dumps(requests.post( + "https://web.spaggiari.eu/rest/v1/students/{}/notes/{}/read/{}".format( + id_().removeprefix("S"), "NTTE", 17119297 ), headers=i_ ).json(), indent=4)) \ No newline at end of file