cURL Dönüştürücü

Bir cURL komutunu fetch, axios, Python, Go, PHP veya Ruby koduna dönüştür — ya da bir istek oluşturup cURL al

%100 gizli: her şey tarayıcında dönüştürülür, hiçbir şey yüklenmez.

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": "Jordan Avery",
    "role": "admin"
  })
});
const data = await response.json();
console.log(data);