INTSAMPLES-59 - Remove Twitter4j reference

For reference see: https://jira.springsource.org/browse/INTSAMPLES-59
This commit is contained in:
Gunnar Hillert
2012-02-01 01:39:01 -05:00
parent 65c4d47206
commit 1867ca5c91
4 changed files with 6 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ To use OAuth authentication/authorization with Twitter you must create new Appli
Follow the directions below to create a new application and obtain consumer keys and access token:
* Go to http://dev.twitter.com/
* Click on 'Register an app' link and fill out all required fields on the form provided;
* Click on 'Create an app' link and fill out all required fields on the form provided;
* Set 'Application Type' to 'Client' and depending on the nature of your application
* Select 'Default Access Type' as 'Read & Write' or 'Read-only'
* Submit the form.

View File

@@ -12,14 +12,15 @@
<context:property-placeholder location="classpath:oauth.properties"/>
<bean id="twitterTemplate"
class="org.springframework.integration.twitter.core.Twitter4jTemplate">
class="org.springframework.social.twitter.api.impl.TwitterTemplate">
<constructor-arg value="${twitter.oauth.consumerKey}" />
<constructor-arg value="${twitter.oauth.consumerSecret}" />
<constructor-arg value="${twitter.oauth.accessToken}" />
<constructor-arg value="${twitter.oauth.accessTokenSecret}" />
</bean>
<int-twitter:search-inbound-channel-adapter id="searchAdapter" channel="sourceExtractor" query="#springintegration">
<int-twitter:search-inbound-channel-adapter id="searchAdapter" channel="sourceExtractor"
query="#springintegration" twitter-template="twitterTemplate">
<int:poller fixed-rate="3000" max-messages-per-poll="5" />
</int-twitter:search-inbound-channel-adapter>

View File

@@ -12,7 +12,7 @@
<context:property-placeholder location="classpath:oauth.properties"/>
<bean id="twitterTemplate"
class="org.springframework.integration.twitter.core.Twitter4jTemplate">
class="org.springframework.social.twitter.api.impl.TwitterTemplate">
<constructor-arg value="${twitter.oauth.consumerKey}" />
<constructor-arg value="${twitter.oauth.consumerSecret}" />
<constructor-arg value="${twitter.oauth.accessToken}" />

View File

@@ -12,7 +12,7 @@
<context:property-placeholder location="classpath:oauth.properties"/>
<bean id="twitterTemplate"
class="org.springframework.integration.twitter.core.Twitter4jTemplate">
class="org.springframework.social.twitter.api.impl.TwitterTemplate">
<constructor-arg value="${twitter.oauth.consumerKey}" />
<constructor-arg value="${twitter.oauth.consumerSecret}" />
<constructor-arg value="${twitter.oauth.accessToken}" />