braziljs / newsletter-tool

BrazilJS' newsletter tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automatic quote suggestion

jaydson opened this issue · 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, 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.

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.

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

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