I am attempting to use this endpoint:
https://(our brightspace sandbox).brightspace.com/d2l/api/lp/1.9/enrollments/users/(test user ID that exists and has valid enrollments)/orgUnits
Purpose - Create a Custom Widget that will allow students to see any Inactive Courses they are enrolled in by parsing JSON responses to pull the Course Name and its active/inactive flag.
I am getting results, which means this endpoint is working.
Like someone else from a post I saw previously, I have loaded my OAuth2.0 client ID and client secret into my JS file (saved on Brightspace). I know this is not ideal from a security endpoint, but I wanted to see if I can get the data first before handling security issues.
Are widgets just unable to use APIs to display information like Enrollment Data?