Spaces:
Build error

HumanMaster6HD / javascript
irelandcuca's picture
Create javascript
90af90b verified
Raw History Blame Contribute Delete
393 Bytes
fetch('https://irelandcuca-humanmaster6hd.hf.space/api/users', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
id: "auth0|12345",
email: "ejemplo@ucdm.com",
first_name: "Benny",
last_name: "Agosto"
})
})
.then(res => res.json())
.then(data => console.log("¡Usuario guardado en base de datos!", data));