Vrací informace o uživateli.
GET /api/3/user
Content-Type: application/x-www-form-urlencoded
"Authorization: Bearer ACCESS_TOKEN"
API 3.14.0
200 OK
{
"UserUID":"1234/moje_id",
"CampaignCategoryCode":"xxxxxxxxxxxxxxx_viz_níže_xxxxxxxxxxxxxxx",
"Class":{
"Id":"XL",
"Abbrev":"X.A",
"Name":"X. A" // nebo také prázdné!
},
"FullName":"Příjmení Jméno, X.A",
"SchoolOrganizationName":"škola",
"SchoolType":null,
"UserType":"parents",
"UserTypeText":"rodič",
"StudyYear":1,
"EnabledModules":[
{
"Module":"Komens",
"Rights":[
"ShowReceivedMessages",
"ShowSentMessages",
"ShowNoticeBoardMessages",
"SendMessages",
"ShowRatingDetails",
"SendAttachments"
]
},
{
"Module":"Absence",
"Rights":[
"ShowAbsence",
"ShowAbsencePercentage"
]
},
{
"Module":"Events",
"Rights":[
"ShowEvents"
]
},
{
"Module":"Marks",
"Rights":[
"ShowMarks",
"ShowFinalMarks",
"PredictMarks"
]
},
{
"Module":"Timetable",
"Rights":[
"ShowTimetable"
]
},
{
"Module":"Substitutions",
"Rights":[
"ShowSubstitutions"
]
},
{
"Module":"Subjects",
"Rights":[
"ShowSubjects",
"ShowSubjectThemes"
]
},
{
"Module":"Homeworks",
"Rights":[
"ShowHomeworks"
]
},
{
"Module":"Gdpr",
"Rights":[
"ShowOwnConsents",
"ShowChildConsents",
"ShowCommissioners"
]
},
{
"Module":"Campaign",
"Rights":[
"ShowCampaign"
]
}
],
"SettingModules":{
"Common":{
"$type":"CommonModuleSettings",
"ActualSemester":{
"SemesterId":"2",
"From":"2020-01-04T00:00:00+01:00",
"To":"2020-07-14T23:59:59+02:00"
}
}
}
}
Používá se u informačního kanálu (campaign).
Po Base64
dekódování dostaneme tuto strukturu:
{
"sid":"1234", //první část UserUID
"ut":69,
"sy":1 //study year
}
Study year se může na mobilu a na webu lišit, viz #23.
při starém / neplatném ACCESS TOKENU
401 Unauthorized
{"Message":"Authorization has been denied for this request."}
při POST
405 Method Not Allowed
{"Message":"The requested resource does not support http method 'POST'."}
(Je možné, že o velkých prázdninách nebude vracet pololetí a možná ani moduly…)