Skip to content

Use webcal instead of API requests #31

@AlexJonker

Description

@AlexJonker

myx supports webcal.

use

❯ curl -X PATCH "https://school.myx.nl/api/Settings" \
        -H "Authorization: Bearer eyJhbGciOiJo......" \
        --data-raw '[{"op":"add","path":"/feeds/<uiid>","value":{"name":"<name>","ids":[<classid>]}}]'

can be a generated uiid.
Is the name it shows up in the settings page. Probably best to do xrooster-
is the id of the class

using this will give you a url like this: webcal://school.myx.nl/api/InternetCalendar/feed/<some other uiid>/<uiid>

when turned into https://school.myx.nl/api/InternetCalendar/feed/<some other uiid>/<uiid> it will download a .ics file

the response for this request doesn't return the other uiid, idk yet how to get that one. Still looking into it.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions