Obter o status de um conteúdo
curl --request POST \
--url https://app.reinvented.education/api/clients/users/{user_id}/contents/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"content_slug_name": "atencion-al-cliente-capsula-1"
}
'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/contents/"
payload = { "content_slug_name": "atencion-al-cliente-capsula-1" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({content_slug_name: 'atencion-al-cliente-capsula-1'})
};
fetch('https://app.reinvented.education/api/clients/users/{user_id}/contents/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"pk": 123,
"content": {
"id": 123,
"title": "<string>",
"slug_name": "<string>",
"duration": "00:05:00"
},
"short_url": "<string>",
"first_seen": "2023-11-07T05:31:56Z",
"last_seen": "2023-11-07T05:31:56Z",
"delivery_date": "2023-12-25",
"delivery_hour": "<string>",
"progress_percentage": 123,
"sent": true,
"metrics": [
{
"pk": 123,
"progress_percentage": 123,
"open_date_time": "2023-11-07T05:31:56Z",
"rating": 123
}
]
}{
"email": [
"Enter a valid email address."
],
"selected_days": [
"Day funday is not valid."
]
}{
"detail": "Authentication credentials were not provided."
}{
"detail": "Not found."
}Progresso
Obter o status de um conteúdo
Retorna os dados de entrega e consumo de um conteúdo programado para o usuário, identificado pelo slug. Se a entrega ainda não tiver uma URL curta, ela é gerada (efeito colateral).
POST
/
clients
/
users
/
{user_id}
/
contents
/
Obter o status de um conteúdo
curl --request POST \
--url https://app.reinvented.education/api/clients/users/{user_id}/contents/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"content_slug_name": "atencion-al-cliente-capsula-1"
}
'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/contents/"
payload = { "content_slug_name": "atencion-al-cliente-capsula-1" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({content_slug_name: 'atencion-al-cliente-capsula-1'})
};
fetch('https://app.reinvented.education/api/clients/users/{user_id}/contents/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"pk": 123,
"content": {
"id": 123,
"title": "<string>",
"slug_name": "<string>",
"duration": "00:05:00"
},
"short_url": "<string>",
"first_seen": "2023-11-07T05:31:56Z",
"last_seen": "2023-11-07T05:31:56Z",
"delivery_date": "2023-12-25",
"delivery_hour": "<string>",
"progress_percentage": 123,
"sent": true,
"metrics": [
{
"pk": 123,
"progress_percentage": 123,
"open_date_time": "2023-11-07T05:31:56Z",
"rating": 123
}
]
}{
"email": [
"Enter a valid email address."
],
"selected_days": [
"Day funday is not valid."
]
}{
"detail": "Authentication credentials were not provided."
}{
"detail": "Not found."
}
