ad_2
(ad-2)
March 8, 2011, 5:39am
1
Hello,
I added oauth support for the twitter river, there's a patch here if
anyone's interested:
gistfile1.txt
Index: plugins/river/twitter/src/main/java/org/elasticsearch/river/twitter/TwitterRiver.java
===================================================================
--- plugins/river/twitter/src/main/java/org/elasticsearch/river/twitter/TwitterRiver.java Mon Mar 07 23:58:07 EST 2011
+++ plugins/river/twitter/src/main/java/org/elasticsearch/river/twitter/TwitterRiver.java Mon Mar 07 23:58:07 EST 2011
@@ -39,6 +39,7 @@
import org.elasticsearch.river.RiverSettings;
import org.elasticsearch.threadpool.ThreadPool;
import twitter4j.*;
+import twitter4j.conf.ConfigurationBuilder;
This file has been truncated. show original
gist to show usage:
gistfile1.txt
curl -XPUT localhost:9200/_river/tweets/_meta -d '
{
"type" : "twitter",
"twitter" : {
"user" : "USERNAME",
"password" : "PASSWORD",
"oauthConsumerKey" : "OAUTHCONSUMERKEY",
"oauthConsumerSecret" : "OAUTHCONSUMERSECRET",
"oauthAccessToken" : "OAUTHACESSTOKEN",
"oauthAccessTokenSecret" : "OAUTHACESSTOKENSECRET"
This file has been truncated. show original