INTSAMPLES-89 - Upgrade to Spring Integration 2.2 RC3
* Test samples * Polish documentation * Polish code For reference see: https://jira.springsource.org/browse/INTSAMPLES-89
This commit is contained in:
@@ -7,23 +7,23 @@ This example demonstrates the following aspects of the Twitter support available
|
||||
2. Twitter Inbound Search Channel Adapter - allows you to receive HOME status updates
|
||||
3. Twitter Outboud Channel Adapter - allows send status updates
|
||||
|
||||
In order to run this sample you need to configure OAuth and set the values in the OAuth properties.
|
||||
In order to run this sample you need to configure [OAuth][] and set the values in the [OAuth][] properties.
|
||||
|
||||
To use OAuth authentication/authorization with Twitter you must create new Application on Twitter Developers site.
|
||||
Follow the directions below to create a new application and obtain consumer keys and access token:
|
||||
To use [OAuth][] authentication/authorization with Twitter you must create a new Application on the Twitter Developers site.
|
||||
Follow the directions below to create a new application and obtain the consumer keys and the access token:
|
||||
|
||||
* Go to http://dev.twitter.com/
|
||||
* 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'
|
||||
* Go to [http://dev.twitter.com/](http://dev.twitter.com/)
|
||||
* Log in to your account
|
||||
* Go to *My applications*.
|
||||
* Click on 'Create a new application' link and fill out all required fields on the form provided;
|
||||
* Submit the form.
|
||||
* If everything is successful you'll be presented with the 'Consumer Key' and 'Consumer Secret'.
|
||||
* Copy both values in the safe place.
|
||||
* On the same page you should see 'My Access Token' button on the side bar (right).
|
||||
* Copy both values to a safe place.
|
||||
* On the same page you should see 'My Access Token' button on bottom of the page.
|
||||
* Click on it and you'll be presented with two more values: 'Access Token' and 'Access Token Secret'.
|
||||
* Copy these values in a safe place as well.
|
||||
* Copy these values to a safe place as well.
|
||||
|
||||
When done fill out **oauth.properties** file so it looks similar to this.
|
||||
When done, fill out **oauth.properties** file so it looks similar to this.
|
||||
|
||||
twitter.oauth.consumerKey=4XzBPabcJQxyBzzzH3TrRQ
|
||||
twitter.oauth.consumerSecret=ab2piKdMfPu8bVa3ab6DAIvIWEVZyMDL0RSEN2I8
|
||||
@@ -32,5 +32,7 @@ When done fill out **oauth.properties** file so it looks similar to this.
|
||||
|
||||
NOTE: the above values are not real ;)
|
||||
|
||||
Now you ready to execute samples. Just run each sample and look for the output produced by the inbound adapters (**TwitterSearchSample.java** and **TwitterTimelineUpdateSample.java**)
|
||||
Now you are ready to execute the samples. Just run each sample and look for the output produced by the inbound adapters (**TwitterSearchSample.java** and **TwitterTimelineUpdateSample.java**)
|
||||
The outbound adapter sample (**TwitterSendUpdatesSample.java**) will not produce any output. Instead within seconds you should see your tweet.
|
||||
|
||||
[OAuth]: http://en.wikipedia.org/wiki/OAuth
|
||||
@@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.springframework.integration.samples</groupId>
|
||||
<artifactId>twitter</artifactId>
|
||||
<version>2.1.0.BUILD-SNAPSHOT</version>
|
||||
<version>2.2.0.BUILD-SNAPSHOT</version>
|
||||
<name>Samples (Basic) - Twitter Demo</name>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<spring.integration.version>2.1.3.RELEASE</spring.integration.version>
|
||||
<log4j.version>1.2.16</log4j.version>
|
||||
<spring.integration.version>2.2.0.RC3</spring.integration.version>
|
||||
<log4j.version>1.2.17</log4j.version>
|
||||
<junit.version>4.10</junit.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
@@ -41,11 +41,11 @@
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.5.1</version>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
<source>1.6</source>
|
||||
<target>1.6</target>
|
||||
<compilerArgument>-Xlint:all</compilerArgument>
|
||||
<showWarnings>true</showWarnings>
|
||||
<showDeprecation>false</showDeprecation>
|
||||
<showDeprecation>true</showDeprecation>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
||||
Reference in New Issue
Block a user