MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / getQuote

Function getQuote

assets/js/Dynamicquotegenerator.js:29–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28//function to get quotedata
29const getQuote = async () => {
30 const api = "https://api.quotable.io/random";
31 let data = await fetch(api);
32 realdata = await data.json();
33 getNewQuotes();
34};
35
36const tweetNow = () => {
37 let tweetPost = `https://twitter.com/intent/tweet?text=${realdata.content}-${realdata.author}`;

Callers

nothing calls this directly

Calls 1

getNewQuotesFunction · 0.85

Tested by

no test coverage detected