Changes for page TwitterMacros
Last modified by Ludovic Dubost on 2009/01/02 17:09
From version 3.1
edited by Ludovic Dubost
on 2009/01/02 16:05
on 2009/01/02 16:05
Change comment:
There is no comment for this version
To version 5.1
edited by Ludovic Dubost
on 2009/01/02 16:13
on 2009/01/02 16:13
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -17,19 +17,25 @@ 17 17 18 18 19 19 #macro(twitter_search $text) 20 +#if(!$twitter) 20 20 #set($tg = $xwiki.parseGroovyFromPage("Twitter.TwitterGroovy", "Twitter.TwitterGroovy")) 21 21 #set($twitter = $tg.getTwitter("xwikiapi", "xwapi2008")) 23 +#end 22 22 #twitter_display($tg.search($text)) 23 23 #end 24 24 25 25 #macro(twitter_user $user) 28 +#if(!$twitter) 26 26 #set($tg = $xwiki.parseGroovyFromPage("Twitter.TwitterGroovy", "Twitter.TwitterGroovy")) 27 27 #set($twitter = $tg.getTwitter("xwikiapi", "xwapi2008")) 31 +#end 28 28 #twitter_display($twitter.getUserTimeline($user)) 29 29 #end 30 30 31 31 #macro(twitter_friends $user) 36 +#if(!$twitter) 32 32 #set($tg = $xwiki.parseGroovyFromPage("Twitter.TwitterGroovy", "Twitter.TwitterGroovy")) 33 33 #set($twitter = $tg.getTwitter("xwikiapi", "xwapi2008")) 34 -#twitter_display($twitter.getFriendsTimeline($user)) 35 35 #end 40 +#twitter_display($twitter.getFriendsTimeline("xwikiapi")) 41 +#end