Listar os cursos de um usuário
curl --request GET \
--url https://app.reinvented.education/api/clients/users/{user_id}/routes/ \
--header 'Authorization: <api-key>'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/routes/"
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}/routes/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"count": 123,
"next": "<string>",
"previous": "<string>",
"results": [
{
"route": {
"id": 123,
"name": "<string>",
"slug_name": "<string>",
"external_id": "<string>",
"total_contents": 123,
"rating": 123,
"published": true,
"alias": "<string>"
},
"progress_percentage": 123,
"init_date": "2023-11-07T05:31:56Z",
"finish_date": "2023-11-07T05:31:56Z",
"removed": true
}
]
}{
"detail": "Authentication credentials were not provided."
}{
"detail": "Not found."
}Progresso
Listar os cursos de um usuário
Lista as matrículas atuais (não removidas) do usuário em cursos, com o progresso.
GET
/
clients
/
users
/
{user_id}
/
routes
/
Listar os cursos de um usuário
curl --request GET \
--url https://app.reinvented.education/api/clients/users/{user_id}/routes/ \
--header 'Authorization: <api-key>'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/routes/"
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}/routes/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"count": 123,
"next": "<string>",
"previous": "<string>",
"results": [
{
"route": {
"id": 123,
"name": "<string>",
"slug_name": "<string>",
"external_id": "<string>",
"total_contents": 123,
"rating": 123,
"published": true,
"alias": "<string>"
},
"progress_percentage": 123,
"init_date": "2023-11-07T05:31:56Z",
"finish_date": "2023-11-07T05:31:56Z",
"removed": true
}
]
}{
"detail": "Authentication credentials were not provided."
}{
"detail": "Not found."
}
