cURL转代码
将cURL命令转换为多种语言的代码
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);相关工具
Keywords: developer tools, online tools, free dev tools, it tools