INTSAMPLES-59 - Remove Twitter4j reference
For reference see: https://jira.springsource.org/browse/INTSAMPLES-59
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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}" />
|
||||
|
||||
@@ -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}" />
|
||||
|
||||
Reference in New Issue
Block a user