Obtener un enlace de acceso
curl --request GET \
--url https://app.reinvented.education/api/clients/users/{user_id}/magic-link/ \
--header 'Authorization: <api-key>'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/magic-link/"
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}/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
Devuelve una URL que inicia la sesión del usuario. Con redirect = feed o eme-report
genera un enlace de acceso (magic link) a esa página (acortado con Bitly salvo con bitly=false).
En otro caso devuelve la URL del perfil del usuario (opcionalmente en path) con un token de autenticación.
Trata la URL como una credencial.
GET
/
clients
/
users
/
{user_id}
/
magic-link
/
Obtener un enlace de acceso
curl --request GET \
--url https://app.reinvented.education/api/clients/users/{user_id}/magic-link/ \
--header 'Authorization: <api-key>'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/magic-link/"
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}/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."
}
