📅  最后修改于: 2022-03-11 14:55:06.905000             🧑  作者: Mango
fetch('https://www.hackthebox.eu/api/invite/generate', {
method: 'POST',
body: JSON.stringify({
title: 'foo',
body: 'bar',
userId: 1
}),
headers: {
'Content-type': 'application/json; charset=UTF-8'
}
})
.then(res => res.json())
.then(console.log)