hello, I am creating a project for my internship and using Giphy API, I am trying to implement Upload gif feature to my project but not able to understand document, can someone pls help me write the code for the same, its important and urgent, Thanks in advance,
reference: https://developers.giphy.com/docs/api/endpoint#upload
code I am trying to write,
const upload = () => {
let url = https://upload.giphy.com/v1/gifs?api_key=${API_KEY};
fetch(url, {
method: "POST",
header: "I don't understand what to put here",
body: "I don't understand what to put here"
}).then(res => res.json()).then(data => console.log(data));
}
The GIPHY Developer Portal is how you integrate the world's best GIF API into your business, app or project.