Changes for page TwitterGroovy
Last modified by Ludovic Dubost on 2010/02/11 15:14
From version 5.1
edited by Ludovic Dubost
on 2009/01/02 14:23
on 2009/01/02 14:23
Change comment:
There is no comment for this version
To version 1.1
edited by Ludovic Dubost
on 2008/12/31 09:57
on 2008/12/31 09:57
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4,20 +4,7 @@ 4 4 import twitter4j.Twitter; 5 5 6 6 public class TwitterGroovy { 7 - TWitter twitter; 8 - 9 - public Twitter getTwitter(twitterID, twitterPassword) { 10 - if (twitter!=null) 11 - return twitter; 12 - 13 - twitter = new Twitter(twitterID,twitterPassword); 14 - return twitter; 7 + public List getTwitter(twitterID, twitterPassword) { 8 + return new Twitter(twitterID,twitterPassword); 15 15 } 16 - 17 - public Document search(String text) { 18 - String url = "http://search.twitter.com/search.atom?q=" + text; 19 - def resp = twitter.get(url, true); 20 - def doc = resp.asDocument(); 21 - return doc; 22 - } 23 23 }
- twitter4j-1.1.3.jar
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -xwiki:XWiki.ludovic - Size
-
... ... @@ -1,1 +1,0 @@ 1 -89.3 KB - Content