Calling the D2L API, made easy.
D2LAuth.buildLoginURL("myAppID", "myAppKey", "example.com", "http://linkbackaddress.com")This will create an URL, where you can log in to your account as usual and obtain an User ID and User Key
Set the values in D2LRequest
with(D2LRequest) {
appID = "myAppID"
appKey = "myAppKey"
userID = "myUserID"
userKey = "myUserKey"
baseURL = "example.com"
}Call the API
val courses = CourseRoute.getCourses()