The vvtermtime
package provides a convenient way to
interact with the Semestry TermTime API in R. This vignette will guide
you through the installation process and demonstrate how to authenticate
with the Semestry API to start retrieving data.
To access the Semestry API, you need an API key and the base URL of
your Semestry instance. The authenticate
function allows
you to authenticate with the API using these credentials.
library(vvtermtime)
# Replace "your_api_key" and "https://semestry.com/" with your actual credentials
semestry <- authenticate(api_key = "your_api_key", base_url = "https://semestry.com/api/")
Make sure to replace “your_api_key” with your actual API key provided by Semestry, and “https://semestry.com/” with the appropriate base URL for your Semestry instance.
Once authenticated, you can start retrieving data from the Semestry API using the provided functions. Here are some examples:
To retrieve room data, you can simply pass the semestry
object to the get_rooms
function:
This will fetch the room data from the Semestry API and store it in the rooms variable.
This vignette provided a brief overview of the
vvtermtime
package and demonstrated how to get started by
authenticating with the Semestry TermTime API and retrieving data. You
can explore the package further by referring to the function
documentation and other available vignettes.
For more information, please visit the vvtermtime
GitHub repository or
consult the package documentation.