#tweeting a quote from random quote generator returns undefined instead of the quote
6 messages · Page 1 of 1 (latest)
I don't see anything wrong with your fetch, but the actual tweetURL bit on line 29 looks off to me. I did something similar in my Tindog project. Let me take a look at what I did there...
Okay, so I had this initially (obviously, my text is different than what yours is going to be, but there may be something instructive here):
const twitterLink = `https://twitter.com/intent/tweet?url=${shareLink}&text=Check%20out%20this%20dog's%20profile%20on%20Tindog!`
And then let me see what shareLink was...
Ah, well, in my case, shareLink was a link to an actual url I wanted the Tweet to link to. I don't think that's what you're wanting here, so just use the text parameter instead of the url parameter, in that case (and be aware that adding spaces between words usually requires some weird in-between characters like the ones I had above)
But I'm $(getquote. Innertext) should return the quote right? So formating doesn't matter @hexed jewel