LiterateInk / Pawnote

A purrfect API wrapper for PRONOTE.
https://docs.literate.ink/pawnote
GNU General Public License v3.0
55 stars 12 forks source link

feat(onglets): add checks to know if onglet is enabled or not #31

Closed Vexcited closed 4 months ago

Vexcited commented 7 months ago

For some people, news methods throw an error because the menu is disabled in the instance itself.

We need to implement a way to let developers check it themselves but also add checks in the methods to prevent developers calling those methods without properly checking before-hand.

Gabriel29306 commented 4 months ago

We can use the listeOnglets (showed) and listeOngletsInvisibles (unshowed) property of the ParametresUtilisateur request.