newsletter-tool icon indicating copy to clipboard operation
newsletter-tool copied to clipboard

Automatic quote suggestion

Open jaydson opened this issue 6 years ago • 5 comments

Every week we have a famous quote on the newsletter footer. It's a 100% manual job, look for some good quote on the internet, however, there's some steps that could be automated. We normally use the excellent CodeWisdom Twitter account as main resource, so the tool pull some ideas from it and then the editor choose the best one.

jaydson avatar Oct 03 '18 12:10 jaydson

@jaydson, the idea is for the algorithm to receive an automatic Twitter quote from CodeWisdom and show it on the page or select a number of quotes and the administrator will select one to show?

If the idea is even equal to the title I will create a file so that the quote shown is not repeated.

acidiney avatar Oct 07 '18 15:10 acidiney

Hey @acidiney, What I imagined:

  1. Pull last 5 CodeWisdom quotes
  2. Show the first quote to the editor
  3. Add the option to navigate to the next suggestion, and so on

Feel free to suggest something else, my input is based on the editor's manual job.

jaydson avatar Oct 08 '18 00:10 jaydson

Do you know a easy way to get the last 5 CodeWisdom quotes?

JulioGold avatar Oct 16 '18 23:10 JulioGold

I'm learning too about this... @jaydson The Twitter do not accept return tweets without authentication. I'm my environment the twitter API return error 215. But have solution @JulioGold Read this article https://tomelliott.com/php/authenticating-twitter-feed-timeline-oauth

acidiney avatar Oct 16 '18 23:10 acidiney

@JulioGold https://developer.twitter.com/en/docs/tweets/timelines/guides/working-with-timelines Too

acidiney avatar Oct 16 '18 23:10 acidiney