From 52c958ead0d7ed787c323287bf555d3b990ff183 Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Tue, 2 Nov 2010 18:43:40 -0400 Subject: [PATCH] INT-1557 added Twiter Outbound adapter documentation --- docs/src/reference/docbook/twitter.xml | 46 ++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/docs/src/reference/docbook/twitter.xml b/docs/src/reference/docbook/twitter.xml index 1443d7007a..88086ab00f 100644 --- a/docs/src/reference/docbook/twitter.xml +++ b/docs/src/reference/docbook/twitter.xml @@ -106,11 +106,12 @@ and configuring a property-placeholder pointing to he above propert
Twitter Inbound Adapters - Twitter inbound adapters allow you to receive Twitter Messages. There are several types of twitter messages: - Types of Tweets + Twitter inbound adapters allow you to receive Twitter Messages. There are several types of + twitter messages - tweets - Current release of Spring Integration provides support for Public Messages, Direct Messages as well as Mention Messages + Current release of Spring Integration provides support for receiving Public Messages, + Direct Messages as well as Mention Messages Every Inbound Twitter Channel Adapter is a Polling consumer which means you have to provide a poller @@ -175,4 +176,43 @@ The Poller that is configured as part of the any Inbound Twitter Adapter (see be simply invoke getText() method. For more information please refer to Twitter4J API
+ +
+ Twitter Outbound Adapter + + Twitter outbound channels adapters allow you to send Twitter Messages - tweets + + + Current release of Spring Integration supports sending Status Update Messages and Direct Messages. + Twitter outbound channels adapters as any other outbound adapter will take the Message payload and send it as + Twitter message. Currently the only supported payload type is String, so consider adding a transformer + if the payload of the incoming message is not a String. + + +
+ Twitter Outbound Update Channel Adapter + + This adapter allows you to send regular status updates by simply sending a Message to a channel + identified via channel attribute. + ]]> + The only extra configuration that is required for this adapter is twitter-connection + +
+ +
+ Twitter Outbound Direct Message Channel Adapter + + This adapter allows you to send Direct Twitter Messages (i.e., @user) by simply sending a Message to a channel + identified via channel attribute. + ]]> + The only extra configuration that is required for this adapter is twitter-connection + +
+ + Twitter does not allow you to post duplicate Messages. This is a common problem during testing when + the same code works the first time but doesn't work the second time,so make sure to change the content of the Message. + One thing that works good for testing is appent timestamp to the end of the message. + + +