Obtener un enlace de acceso (POST)
curl --request POST \
--url https://app.reinvented.education/api/clients/users/{user_id}/magic-link/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"redirect": "feed",
"bitly": false
}
'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/magic-link/"
payload = {
"redirect": "feed",
"bitly": False
}
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({redirect: 'feed', bitly: false})
};
fetch('https://app.reinvented.education/api/clients/users/{user_id}/magic-link/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"url": "https://bit.ly/3xExample"
}{
"detail": "Authentication credentials were not provided."
}{
"detail": "Not found."
}Usuarios
Obtener un enlace de acceso (POST)
Igual que la variante GET, pero redirect y bitly se leen del cuerpo JSON. path se sigue leyendo del query string.
POST
/
clients
/
users
/
{user_id}
/
magic-link
/
Obtener un enlace de acceso (POST)
curl --request POST \
--url https://app.reinvented.education/api/clients/users/{user_id}/magic-link/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"redirect": "feed",
"bitly": false
}
'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/magic-link/"
payload = {
"redirect": "feed",
"bitly": False
}
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({redirect: 'feed', bitly: false})
};
fetch('https://app.reinvented.education/api/clients/users/{user_id}/magic-link/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"url": "https://bit.ly/3xExample"
}{
"detail": "Authentication credentials were not provided."
}{
"detail": "Not found."
}Autorizaciones
Parámetros de ruta
Parámetros de consulta
Cuerpo
application/json

