Obter o pensum de um usuário
curl --request GET \
--url https://app.reinvented.education/api/clients/users/{user_id}/pensums/{pensum_id}/ \
--header 'Authorization: <api-key>'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/pensums/{pensum_id}/"
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/{pensum_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"pensum": {
"id": 123,
"name": "<string>",
"slug_name": "<string>",
"pensumroute_set": [
{
"route": {
"id": 123,
"name": "<string>",
"slug_name": "<string>",
"external_id": "<string>",
"total_contents": 123,
"rating": 123,
"published": true,
"alias": "<string>"
},
"ordering": 123
}
]
},
"progress_percentage": 123,
"is_active": true,
"removed": true
}{
"detail": "Authentication credentials were not provided."
}{
"detail": "Not found."
}Progresso
Obter o pensum de um usuário
Retorna a matrícula do usuário em um pensum, com os cursos do pensum em ordem.
GET
/
clients
/
users
/
{user_id}
/
pensums
/
{pensum_id}
/
Obter o pensum de um usuário
curl --request GET \
--url https://app.reinvented.education/api/clients/users/{user_id}/pensums/{pensum_id}/ \
--header 'Authorization: <api-key>'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/pensums/{pensum_id}/"
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/{pensum_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"pensum": {
"id": 123,
"name": "<string>",
"slug_name": "<string>",
"pensumroute_set": [
{
"route": {
"id": 123,
"name": "<string>",
"slug_name": "<string>",
"external_id": "<string>",
"total_contents": 123,
"rating": 123,
"published": true,
"alias": "<string>"
},
"ordering": 123
}
]
},
"progress_percentage": 123,
"is_active": true,
"removed": true
}{
"detail": "Authentication credentials were not provided."
}{
"detail": "Not found."
}
