curl command
curl -X POST https://api.example.com/v1/orders \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_TOKEN" \ -d '{"item":"widget","qty":2}'
Output
fetch (async/await)
fetch (.then)
axios
JavaScript
Copy code
Powered by
SnagATool
— Free cURL to Fetch Converter