Toolbox
VN
Công cụ liên quan:
Code Thành Ảnh
URL Parser
Làm Đẹp / Rút Gọn Code
JSON → TypeScript
Hướng dẫn: cURL → Code
cURL → Code
VN
fetch
axios
Lệnh cURL
curl -X POST https://api.example.com/users \ -H "Content-Type: application/json" \ -H "Authorization: Bearer TOKEN" \ -d '{"name":"Ada"}'
Code
const res = await fetch("https://api.example.com/users", { method: "POST", headers: { "Content-Type": "application/json", "Authorization": "Bearer TOKEN" }, body: "{\"name\":\"Ada\"}" }); const data = await res.json();
Hỗ trợ -X, -H, -d/--data, -u. Mọi thứ chạy cục bộ.
Đánh giá & bình luận
—
Chưa có đánh giá nào
5
4
3
2
1
Bạn thấy công cụ này thế nào?
Đăng nhập để viết bình luận.
Đăng nhập
No data
Chưa có bình luận nào