List a user's pensums
curl --request GET \
--url https://app.reinvented.education/api/clients/users/{user_id}/pensums/ \
--header 'Authorization: <api-key>'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/pensums/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.reinvented.education/api/clients/users/{user_id}/pensums/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"count": 123,
"next": "<string>",
"previous": "<string>",
"results": [
{
"id": 123,
"pensum": {
"id": 123,
"name": "<string>",
"slug_name": "<string>",
"finished": true,
"starting_date": "2023-12-25"
},
"is_active": true,
"progress_percentage": 123,
"init_date": "2023-12-25",
"finish_date": "2023-12-25",
"stats": {
"total_courses": 123,
"completed_courses": 123
},
"removed": true
}
]
}{
"detail": "Authentication credentials were not provided."
}{
"detail": "Not found."
}Progress
List a user's pensums
Lists the user’s current (non-removed) pensum enrollments with progress.
GET
/
clients
/
users
/
{user_id}
/
pensums
/
List a user's pensums
curl --request GET \
--url https://app.reinvented.education/api/clients/users/{user_id}/pensums/ \
--header 'Authorization: <api-key>'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/pensums/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.reinvented.education/api/clients/users/{user_id}/pensums/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"count": 123,
"next": "<string>",
"previous": "<string>",
"results": [
{
"id": 123,
"pensum": {
"id": 123,
"name": "<string>",
"slug_name": "<string>",
"finished": true,
"starting_date": "2023-12-25"
},
"is_active": true,
"progress_percentage": 123,
"init_date": "2023-12-25",
"finish_date": "2023-12-25",
"stats": {
"total_courses": 123,
"completed_courses": 123
},
"removed": true
}
]
}{
"detail": "Authentication credentials were not provided."
}{
"detail": "Not found."
}
