Skip to content

Commit

Permalink
Notes/read
Browse files Browse the repository at this point in the history
  • Loading branch information
FLAK-ZOSO committed Jun 28, 2022
1 parent 8535444 commit f0aef8f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions Notes/read.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Response
```json
{
"event": {
"evtCode": "NTTE",
"evtId": 17119297,
"evtText": "La classe oggi 2/04/22, esce alle 11.50."
}
}
```
6 changes: 3 additions & 3 deletions Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit f0aef8f

Please sign in to comment.