cURL sang Code
Chuyển đổi lệnh cURL sang code nhiều ngôn ngữ
const response = await fetch('https://api.example.com/users', {
method: 'POST',
headers: {
"Authorization": "Bearer TOKEN123",
"Content-Type": "application/json"
},
body: `{"name": "Alice", "email": "alice@example.com"}`
});
const data = await response.json();
console.log(data);Công cụ liên quan
Keywords: developer tools, online tools, free dev tools, it tools