const fetch = require("node-fetch");
const API_KEY = "API_KEY";
const url = "https://www.ayrshare.com";
fetch("https://app.ayrshare.com/api/shorten", {
"Content-Type": "application/json",
"Authorization": `Bearer ${API_KEY}`
body: JSON.stringify({ url }),
.then((res) => res.json())
.then((json) => console.log(json))