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
kimchy
(Shay Banon)
March 8, 2011, 5:57am
2
Can you send a pull request?
On Tuesday, March 8, 2011 at 7:39 AM, ad wrote:
Hello,
I added oauth support for the twitter river, there's a patch here if
anyone's interested:
ouath support · GitHub
gist to show usage:
gist:859899 · GitHub
ad_2
(ad-2)
March 8, 2011, 3:21pm
3
Created:
elastic:master
← adoran:master
opened 03:19PM - 08 Mar 11 UTC
Added oauth support for twitter river plugin.
The following configuration shoul… d be set:
```
curl -XPUT localhost:9200/_river/my_twitter_river/_meta -d '{
"type" : "twitter",
"twitter" : {
"oauth" : {
"consumer_key" : "...",
"consumer_secret": "...",
"access_token" : "...",
"access_token_secret" : "..."
}
},
"index" : {
"index" : "my_twitter_river",
"type" : "status",
"bulk_size" : 100
}
}'
```
Thanks!
On Mar 8, 12:57 am, Shay Banon shay.ba...@elasticsearch.com wrote:
Can you send a pull request?
On Tuesday, March 8, 2011 at 7:39 AM, ad wrote:
Hello,
I added oauth support for the twitter river, there's a patch here if
anyone's interested:
ouath support · GitHub
gist to show usage:
gist:859899 · GitHub