Twitter search API index is not rebuild as frecuent as it should and there are cases that users want to show live results.

This patch uses Twitter RESTful API to get user tweets so results are real.

Comments

jherencia’s picture

Status: Needs review » Needs work

I neeed to fix theme_twitter_block_tweets.

ZenDoodles’s picture

This is a big help @jherencia. Thanks so much!

jherencia’s picture

Status: Needs work » Needs review
StatusFileSize
new7.11 KB
damienmckenna’s picture

A key reason to use the REST API is the following limitation in the Search API:

The Search API is not complete index of all Tweets, but instead an index of recent Tweets. At the moment that index includes between 6-9 days of Tweets.

We've just ran into this.

damienmckenna’s picture

StatusFileSize
new17.42 KB

Updated patch, mostly for some tweaks:

  • The cache_get() statement was inadvertently removed, so it kept loading the data each page load.
  • Several small fixes for coding standards.
  • I added some more comments.
damienmckenna’s picture

FYI another change I made was to move loading the CSS file to the info file instead of hook_init().

jherencia’s picture

Thank you @Damien I don't know why I removed cache statement.

It looks great to me now.

damienmckenna’s picture

StatusFileSize
new15.49 KB

Updated again to better identify errors from twitter (instead of just saying "oops"), and also separate out the magic code that does the work so it can be more readily reused elsewhere, e.g. by a CTools plugin.

mstrelan’s picture

Status: Needs review » Reviewed & tested by the community

Patch in #8 works for me

cweagans’s picture

Status: Reviewed & tested by the community » Fixed

I committed this with some changes. Thanks!

dddave’s picture

Is there a new dev under way?

cweagans’s picture

I am helping zendoodles get twitter_block ready for a 1.0 release, and she's helping me with BlogAPI :)

cweagans’s picture

Status: Fixed » Closed (fixed)

Closing because I'm impatient and don't want to wait for the bot to clear out the queue.

cweagans’s picture

Issue summary: View changes

Minor changes.