...
Code Block |
---|
from("twitter://search?...") .setHeader("websocket.sendToAll", "true") .to("websocket:camel-tweet") |
This example is already configured using a testing purpose twitter account named 'cameltweet'. And therefore the example is ready to run out of the box.
This account is only for testing purpose, and should not be used in your custom applications. For that you need to setup and use your own twitter account.
Info | ||
---|---|---|
| ||
To use twitter, you need a twitter account which have setup an application to be used. In your Twitter settings under the Apps menu, it will list your approved applications. For example I created an application named "Camel-Example" When you have created an application, you get a number of details back from twitter |
...
You will need to compile this example first:
...