1

Is it necessary to authenticate to simply show a Twitter feed for particular hashtags? If not, is there an example of how I would accomplish this? I just want to be able to display a Twitter feed for 1 or 2 hashtags. I would assume authentication isn't necessary to accomplish this.

Thanks!

flag

1 Answer

4

Answer

No, it is not necessary to authenticate for Twitter search.

Example

ruleset a60x155 {
  meta {
    name "Twitter search"
    author "Mike Grace"
    description <<
      example for devex            
    >>
    logging on    
  }
  dispatch {
    domain "example.com"
  }
  global {
    datasource twitter_search <- "http://search.twitter.com/search.json";    
  }
  rule newrule is active {
    select using ".*" setting ()
    pre {
      json = datasource:twitter_search("?q=kynetx");
      results = json.pick("$..results");
      text = json.pick("$..text");
      first = text[0];
    }
    notify("Twitter Search for Kynetx", first) with sticky = true;
  }
}

Example Result

example notify from twitter search example

link|flag
Excellent, this gets me much closer to where I need to be. Thanks! – Russ Mar 3 at 22:16
Sweeeeeet! Look forward to seeing the finished product. – Mike Grace Mar 3 at 23:10

Your Answer

Get an OpenID
or

Not the answer you're looking for? Browse other questions tagged or ask your own question.