Tananyagok lekérése
Kérés a szervertől
POSThttps://kretadktapi.e-kreta.hu/dktapi/intezmenyek/tanulok/orak/tananyagok
HEADERapiKey = 21ff6c25-d1da-4a68-a811-c881a6057463 (opcionális)
HEADERAccept-Language = hu-HU (opcionális)
HEADERAuthorization = Bearer xxxxxxxxxx (Bearer tokened)
{
"osztalyId": 0,
"feladatId": 0,
"datum": "xxxxxxxxxx",
"alkalmazottId": 0,
"csoportId": 0,
"oraszam": 0,
"tantargyId": 0,
"idopont": "xxxxxxxxxx"
}
Structure: ClassworkTeachingMaterialPost
C# class file: ClassworkTeachingMaterialPost.cs
| Field name | Variable name | Variable type |
|---|---|---|
| osztalyId | classId | long |
| feladatId | classworkId | long |
| datum | date | string |
| alkalmazottId | employeeId | long |
| csoportId | groupId | long |
| oraszam | lessonNumber | long |
| tantargyId | subjectId | long |
| idopont | time | string |
Válasz a szervertől
Sikeres lekérdezés: (200 OK)
[
{
"feladatId": 0,
"id": 0,
"link": "xxxxxxxxxx",
"forrasTipusId": 0,
"cim": "xxxxxxxxxx",
},
...
]
Structure: List<ClassworkTeachingMaterial>
C# class file: ClassworkTeachingMaterial.cs
| Field name | Variable name | Variable type |
|---|---|---|
| feladatId | classworkId | long |
| id | id | long |
| link | link | string |
| forrasTipusId | materialTypeId | int |
| cim | title | string |
cURL:
curl "https://kretadktapi.e-kreta.hu/dktapi/intezmenyek/tanulok/orak/tananyagok" -H "apiKey: 21ff6c25-d1da-4a68-a811-c881a6057463" -H "Accept-Language: hu-HU" --oauth2-bearer "{accessToken}" -d "{json}"