Title: | Interface for 'Semestry TermTime' Services |
---|---|
Description: | Provides an R interface for interacting with the 'Semestry TermTime' services. It allows users to retrieve scheduling data from the API. see <https://github.com/vusaverse/vvtermtime/blob/main/openapi_7.7.0.pdf> for details. |
Authors: | Tomer Iwan [aut, cre, cph] |
Maintainer: | Tomer Iwan <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.1 |
Built: | 2025-02-01 03:11:36 UTC |
Source: | https://github.com/vusaverse/vvtermtime |
This function authenticates with the Semestry Termtime API by verifying the API key and base URL. It returns an authenticated Semestry object that can be used for subsequent API calls.
authenticate(api_key, base_url)
authenticate(api_key, base_url)
api_key |
The API key for Semestry. |
base_url |
The base URL of the Semestry API. |
An authenticated Semestry object.
This function sends a GET request to the activities endpoint of the Semestry API and retrieves the activity data.
get_activities(semestry, timeout = 30)
get_activities(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved activity data from the API.
This function sends a GET request to the report room endpoint of the Semestry API and retrieves the room booking data.
get_activities_report_attr(semestry, timeout = 30)
get_activities_report_attr(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved activity report data from the API.
This function sends a GET request to the report room endpoint of the Semestry API and retrieves the room booking data.
get_activities_report_sche(semestry, timeout = 30)
get_activities_report_sche(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved activity report data from the API.
This function sends a GET request to the activity groups endpoint of the Semestry API and retrieves the activity group data.
get_activity_groups(semestry, timeout = 30)
get_activity_groups(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved activity group data from the API.
This function sends a GET request to the activity types endpoint of the Semestry API and retrieves the activity type data.
get_activity_types(semestry, timeout = 30)
get_activity_types(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved activity type data from the API.
This function sends a GET request to the assessment types endpoint of the Semestry API and retrieves the assessment type data.
get_assessment_types(semestry, timeout = 30)
get_assessment_types(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved assessment type data from the API.
This function sends a GET request to the booking types endpoint of the Semestry API and retrieves the booking type data.
get_booking_types(semestry, timeout = 30)
get_booking_types(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved booking type data from the API.
This function sends a GET request to the buildings endpoint of the Semestry API and retrieves the building data.
get_buildings(semestry, timeout = 30)
get_buildings(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved building data from the API.
This function sends a GET request to the campuses endpoint of the Semestry API and retrieves the campus data.
get_campuses(semestry, timeout = 30)
get_campuses(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved campus data from the API.
This function sends a GET request to the capabilities endpoint of the Semestry API and retrieves the capability data.
get_capabilities(semestry, timeout = 30)
get_capabilities(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved capability data from the API.
This function sends a GET request to the contact requirements endpoint of the Semestry API and retrieves the contact requirement data.
get_contact_requirements(semestry, timeout = 30)
get_contact_requirements(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved contact requirement data from the API.
This function sends a GET request to the courses endpoint of the Semestry API and retrieves the course data.
get_courses(semestry, timeout = 30)
get_courses(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved course data from the API.
## Not run: semestry <- authenticate_semestry() get_courses(semestry) ## End(Not run)
## Not run: semestry <- authenticate_semestry() get_courses(semestry) ## End(Not run)
This function sends a GET request to the database endpoint of the Semestry API and retrieves the data.
get_database(semestry, timeout = 30)
get_database(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved data from the API database.
This function sends a GET request to the departments endpoint of the Semestry API and retrieves the department data.
get_departments(semestry, timeout = 30)
get_departments(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved department data from the API.
This function sends a GET request to the modules endpoint of the Semestry API and retrieves the module data.
get_modules(semestry, timeout = 30)
get_modules(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved module data from the API.
This function sends a GET request to the offers endpoint of the Semestry API and retrieves the offers.
get_offers(semestry, timeout = 30)
get_offers(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved offers from the API.
## Not run: semestry <- authenticate_semestry() get_offers(semestry) ## End(Not run)
## Not run: semestry <- authenticate_semestry() get_offers(semestry) ## End(Not run)
This function sends a GET request to the report booking endpoint of the Semestry API and retrieves the booking booking data.
get_report_booking(semestry, timeout = 30)
get_report_booking(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved report booking data from the API.
This function sends a GET request to the report room endpoint of the Semestry API and retrieves the room booking data.
get_report_room(semestry, timeout = 30)
get_report_room(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved report room data from the API.
This function sends a GET request to the room relationships endpoint of the Semestry API and retrieves the room relationship data.
get_room_relationships(semestry, timeout = 30)
get_room_relationships(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved room relationship data from the API.
This function sends a GET request to the roombookings endpoint of the Semestry API and retrieves the room booking data.
get_roombookings(semestry, timeout = 30)
get_roombookings(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved room booking data from the API.
This function sends a GET request to the rooms endpoint of the Semestry API and retrieves the room data.
get_rooms(semestry, timeout = 30)
get_rooms(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved room data from the API.
## Not run: semestry <- authenticate_semestry() get_rooms(semestry) ## End(Not run)
## Not run: semestry <- authenticate_semestry() get_rooms(semestry) ## End(Not run)
This function sends a GET request to the schedule/rooms endpoint of the Semestry API and retrieves the schedule rooms data.
get_schedule_rooms(semestry, timeout = 30)
get_schedule_rooms(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved schedule rooms data from the API.
This function sends a GET request to the staff endpoint of the Semestry API and retrieves the staff data.
get_staff(semestry, timeout = 30)
get_staff(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved staff data from the API.
## Not run: semestry <- authenticate_semestry() get_staff(semestry) ## End(Not run)
## Not run: semestry <- authenticate_semestry() get_staff(semestry) ## End(Not run)
This function sends a GET request to the staff groups endpoint of the Semestry API and retrieves the staff group data.
get_staff_groups(semestry, timeout = 30)
get_staff_groups(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved staff group data from the API.
This function sends a GET request to the staffpools endpoint of the Semestry API and retrieves the staff pools.
get_staff_pools(semestry, timeout = 30)
get_staff_pools(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved staff pools from the API.
This function sends a GET request to the studentgroupmaps endpoint of the Semestry API and retrieves the student group mappings data.
get_student_group_maps(semestry, timeout = 30)
get_student_group_maps(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved student group maps from the API.
This function sends a GET request to the student groups endpoint of the Semestry API and retrieves the student group data.
get_student_groups(semestry, timeout = 30)
get_student_groups(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved student group data from the API.
This function sends a GET request to the students endpoint of the Semestry API and retrieves the student data.
get_students(semestry, timeout = 30)
get_students(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved student data from the API.
## Not run: semestry <- authenticate_semestry() get_students(semestry) ## End(Not run)
## Not run: semestry <- authenticate_semestry() get_students(semestry) ## End(Not run)
This function sends a GET request to the supergroups endpoint of the Semestry API and retrieves the supergroup data.
get_supergroups(semestry, timeout = 30)
get_supergroups(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved supergroup data from the API.
This function sends a GET request to the timeframes endpoint of the Semestry API and retrieves the timeframes data.
get_timeframes(semestry, timeout = 30)
get_timeframes(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved timeframes data from the API.
This function sends a GET request to the webhooks endpoint of the Semestry API and retrieves the webhook data.
get_webhooks(semestry, timeout = 30)
get_webhooks(semestry, timeout = 30)
semestry |
An authenticated Semestry object. |
timeout |
The timeout duration for the GET request (default: 30 seconds). |
The retrieved webhook data from the API.