This repo provides an SDK for Skyward's QMLATIV generic API.
remotes::install_github("samterfa/rqmlativ")
Follow Skyward's instructions for creating a Qmlativ API user here. Select "Generic" for the API Type, and OAuth 2.0 as the authentication type.
Begin by setting relevant environmental variables based on the credentials created above.
Sys.setenv(SkywardConsumerKey = {YourConsumerKey})
Sys.setenv(SkywardConsumerSecret = {YourConsumerSecret})
Sys.setenv(SkywardBaseUrl = {YourBaseUrl})
Or, even better, place the above in a .Renviron in your working directory so that they are automatically loaded when using rqmlativ.
Your base url is likely your Skyward URL but ending in API instead of STS.
Then make a call!
library(rqmlativ)
#>
#> Attaching package: 'rqmlativ'
#> The following objects are masked from 'package:methods':
#>
#> getClass, getGroup
#> The following object is masked from 'package:base':
#>
#> getElement
listEntities(Name = T)
#> Adding .tokenCache/rqmlativToken to .gitignore
#> Name
#> 1 Minnehaha Academy
#> 2 Minnehaha Academy Upper School
#> 3 Minnehaha Academy Lower School
#> 4 Minnehaha Academy Middle School
Function documentation for this package is available at https://samterfa.github.io/rqmlativ/reference/index.html.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.