const SocialPost = require("social-media-api");const API_KEY = "API KEY"; // get an API Key at ayrshare.comconst social = new SocialPost(API_KEY);const run = async () => { /** post */ const post = await social .post({ post: "One more time", platforms: ["twitter", "facebook", "linkedin"], profileKey: "DJKJDK-SKDJKDJF" // used with a User Profile }) .catch(console.error); console.log(post); /** history */ const history = await social.history().catch(console.error); console.log(history); /** delete */ const deletePost = await social.delete({ id: post.id }).catch(console.error); console.log(deletePost);};run();