File tree 3 files changed +45
-7
lines changed
java/com/captaindebug/social/twittertimeline
3 files changed +45
-7
lines changed Original file line number Diff line number Diff line change 13
13
<org .aspectj-version>1.6.9</org .aspectj-version>
14
14
<org .slf4j-version>1.5.10</org .slf4j-version>
15
15
<spring-social .version>1.0.2.RELEASE</spring-social .version>
16
- <org .springframework.social-version>1.0.2.RELEASE</org .springframework.social-version>
16
+ <org .springframework.social-twitter- version>1.0.2.RELEASE</org .springframework.social-twitter -version>
17
17
</properties >
18
18
<dependencies >
19
19
<!-- Spring -->
134
134
<!-- Twitter API -->
135
135
<dependency >
136
136
<groupId >org.springframework.social</groupId >
137
- <artifactId >spring-social-web </artifactId >
138
- <version >${org.springframework.social-version} </version >
137
+ <artifactId >spring-social-twitter </artifactId >
138
+ <version >${org.springframework.social-twitter- version} </version >
139
139
</dependency >
140
140
141
141
</dependencies >
Original file line number Diff line number Diff line change
1
+ /**
2
+ *
3
+ */
4
+ package com .captaindebug .social .twittertimeline ;
5
+
6
+ import javax .inject .Inject ;
7
+
8
+ import org .slf4j .Logger ;
9
+ import org .slf4j .LoggerFactory ;
10
+ import org .springframework .social .twitter .api .Twitter ;
11
+ import org .springframework .stereotype .Controller ;
12
+ import org .springframework .ui .Model ;
13
+
14
+ /**
15
+ * @author Roger
16
+ *
17
+ * Created 10:40:52 PM Jun 9, 2012
18
+ *
19
+ */
20
+ @ Controller
21
+ public class TwitterTimeLineController {
22
+
23
+ private static final Logger logger = LoggerFactory .getLogger (TwitterTimeLineController .class );
24
+
25
+ private final Twitter twitter ;
26
+
27
+ @ Inject
28
+ public TwitterTimeLineController (Twitter twitter ) {
29
+ this .twitter = twitter ;
30
+ }
31
+
32
+ public String getUserTimeline (Model model ) {
33
+
34
+ return "timeline" ;
35
+ }
36
+
37
+ }
Original file line number Diff line number Diff line change 5
5
<title >Home</title >
6
6
</head >
7
7
<body >
8
- <h1 >
9
- Hello world!
10
- </h1 >
8
+ <h1 >Captain Debug's Social Samples</h1 >
11
9
12
- <P > The time on the server is ${ serverTime } . </P >
10
+ <P >
11
+ <a href =timeline?id =BBCBreaking >Grab Twitter User Time Line for @BBCBreaking</a >
12
+
13
+ </P >
13
14
</body >
14
15
</html >
You can’t perform that action at this time.
0 commit comments