librus_apix.urls
Constants:
- HEADERS: A dictionary containing HTTP headers for making requests.
- BASE_URL: The base URL for the Librus website.
- API_URL: The base URL for the Librus API.
- INDEX_URL: Student Index url
- GRADES_URL: URL for accessing grades.
- TIMETABLE_URL: URL for accessing the timetable.
- ANNOUNCEMENTS_URL: URL for accessing announcements.
- MESSAGE_URL: URL for accessing messages.
- RECIPIENT_GROUPS_URL: URL for retrieving recipient groups for messages.
- RECIPIENTS_URL: URL for retrieving recipients for messages.
- SEND_MESSAGE_URL: URL for sending messages.
- ATTENDANCE_URL: URL for accessing attendance information.
- ATTENDANCE_DETAILS_URL: URL for accessing detailed attendance information.
- SCHEDULE_URL: URL for accessing the schedule.
- HOMEWORK_URL: URL for accessing homework.
- HOMEWORK_DETAILS_URL: URL for accessing detailed homework information.
- INFO_URL: URL for accessing information.
- COMPLETED_LESSONS_URL: URL for accessing completed lessons.
- GATEWAY_API_ATTENDANCE: URL for accessing attendance data via the gateway API.
- REFRESH_OAUTH_URL: URL for refreshing OAuth tokens.
1""" 2Constants: 3 ```python 4 - HEADERS: A dictionary containing HTTP headers for making requests. 5 - BASE_URL: The base URL for the Librus website. 6 - API_URL: The base URL for the Librus API. 7 - INDEX_URL: Student Index url 8 - GRADES_URL: URL for accessing grades. 9 - TIMETABLE_URL: URL for accessing the timetable. 10 - ANNOUNCEMENTS_URL: URL for accessing announcements. 11 - MESSAGE_URL: URL for accessing messages. 12 - RECIPIENT_GROUPS_URL: URL for retrieving recipient groups for messages. 13 - RECIPIENTS_URL: URL for retrieving recipients for messages. 14 - SEND_MESSAGE_URL: URL for sending messages. 15 - ATTENDANCE_URL: URL for accessing attendance information. 16 - ATTENDANCE_DETAILS_URL: URL for accessing detailed attendance information. 17 - SCHEDULE_URL: URL for accessing the schedule. 18 - HOMEWORK_URL: URL for accessing homework. 19 - HOMEWORK_DETAILS_URL: URL for accessing detailed homework information. 20 - INFO_URL: URL for accessing information. 21 - COMPLETED_LESSONS_URL: URL for accessing completed lessons. 22 - GATEWAY_API_ATTENDANCE: URL for accessing attendance data via the gateway API. 23 - REFRESH_OAUTH_URL: URL for refreshing OAuth tokens. 24 ``` 25""" 26 27from typing import Dict, Union 28 29HEADERS: Dict[str, Union[str, bytes]] = { 30 "User-Agent": "Mozilla/5.0 (Windows NT x.y; Win64; x64; rv:10.0) Gecko/20100101 Firefox/10.0", 31 "Content-Type": "application/x-www-form-urlencoded", 32} 33BASE_URL = "https://synergia.librus.pl" 34API_URL = "https://api.librus.pl" 35INDEX_URL = BASE_URL + "/uczen/index" 36GRADES_URL = BASE_URL + "/przegladaj_oceny/uczen" 37TIMETABLE_URL = f"{BASE_URL}/przegladaj_plan_lekcji" 38ANNOUNCEMENTS_URL = f"{BASE_URL}/ogloszenia" 39MESSAGE_URL = f"{BASE_URL}/wiadomosci/1/5" 40RECIPIENT_GROUPS_URL = f"{BASE_URL}/wiadomosci/2/6" 41RECIPIENTS_URL = f"{BASE_URL}/getRecipients" 42SEND_MESSAGE_URL = f"{BASE_URL}/wiadomosci/1/6" 43ATTENDANCE_URL = f"{BASE_URL}/przegladaj_nb/uczen" 44ATTENDANCE_DETAILS_URL = f"{BASE_URL}/przegladaj_nb/szczegoly/" 45SCHEDULE_URL = f"{BASE_URL}/terminarz/" 46RECENT_SCHEDULE_URL = f"{BASE_URL}/terminarz/dodane_od_ostatniego_logowania" 47HOMEWORK_URL = f"{BASE_URL}/moje_zadania" 48HOMEWORK_DETAILS_URL = f"{BASE_URL}/moje_zadania/podglad/" 49INFO_URL = f"{BASE_URL}/informacja" 50COMPLETED_LESSONS_URL = f"{BASE_URL}/zrealizowane_lekcje" 51GATEWAY_API_ATTENDANCE = f"{BASE_URL}/gateway/api/2.0/Attendances" 52REFRESH_OAUTH_URL = f"{BASE_URL}/refreshToken"
HEADERS: Dict[str, Union[str, bytes]] =
{'User-Agent': 'Mozilla/5.0 (Windows NT x.y; Win64; x64; rv:10.0) Gecko/20100101 Firefox/10.0', 'Content-Type': 'application/x-www-form-urlencoded'}
BASE_URL =
'https://synergia.librus.pl'
API_URL =
'https://api.librus.pl'
INDEX_URL =
'https://synergia.librus.pl/uczen/index'
GRADES_URL =
'https://synergia.librus.pl/przegladaj_oceny/uczen'
TIMETABLE_URL =
'https://synergia.librus.pl/przegladaj_plan_lekcji'
ANNOUNCEMENTS_URL =
'https://synergia.librus.pl/ogloszenia'
MESSAGE_URL =
'https://synergia.librus.pl/wiadomosci/1/5'
RECIPIENT_GROUPS_URL =
'https://synergia.librus.pl/wiadomosci/2/6'
RECIPIENTS_URL =
'https://synergia.librus.pl/getRecipients'
SEND_MESSAGE_URL =
'https://synergia.librus.pl/wiadomosci/1/6'
ATTENDANCE_URL =
'https://synergia.librus.pl/przegladaj_nb/uczen'
ATTENDANCE_DETAILS_URL =
'https://synergia.librus.pl/przegladaj_nb/szczegoly/'
SCHEDULE_URL =
'https://synergia.librus.pl/terminarz/'
RECENT_SCHEDULE_URL =
'https://synergia.librus.pl/terminarz/dodane_od_ostatniego_logowania'
HOMEWORK_URL =
'https://synergia.librus.pl/moje_zadania'
HOMEWORK_DETAILS_URL =
'https://synergia.librus.pl/moje_zadania/podglad/'
INFO_URL =
'https://synergia.librus.pl/informacja'
COMPLETED_LESSONS_URL =
'https://synergia.librus.pl/zrealizowane_lekcje'
GATEWAY_API_ATTENDANCE =
'https://synergia.librus.pl/gateway/api/2.0/Attendances'
REFRESH_OAUTH_URL =
'https://synergia.librus.pl/refreshToken'