cURL zu Code
KostenloscURL-Befehle in fetch-, Axios-, Python-, Go- oder PHP-Code umwandeln.
cURL-Befehl
Code
const response = await fetch("https://api.example.com/v1/users", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_TOKEN"
},
body: JSON.stringify({
"name": "Ada",
"email": "ada@example.com"
}),
});
const data = await response.json();
console.log(data);Lokal in Ihrem Browser verarbeitet – nichts verlässt Ihr Gerät.