Yahoo Instant Messaging Processor
- 1. Scope
- 2. Config Input
- 3. Data Input
- 4. Example
1. Scope
This processor can send and receive Yahoo Instant Messages (IM) from within a Web
application. To use this processor, you need to create a Yahoo account that will act
as the sender. You can send an IM to any Yahoo subscriber. The processor launches a
customizable pipeline when an IM is received. The IM processor has two mandatory
inputs: session
contains login information, and message
contains the message to send. A third input, declared in the
on-message-received
element contains the pipeline to be executed when a
message is received. This pipeline must have a data
input parameter
containing a document describing the incoming message:
2. Config Input
The
config
input contains basic information
such as login, password and definition of the pipeline to
execute when an IM is received.
login
|
A Yahoo account, used as the sender of the IM |
---|---|
password
|
The matching password |
on-message-received
|
|
3. Data Input
The
data
input contains the message to send under
the
message
element.
to
|
A Yahoo account to send to message to |
---|---|
body
|
The body of the message to send |
4. Example
The following code illustrates the instantiation of the
IMSerializer to send a message to the Yahoo account
tove
from
jani
. Additionally, a
statement is written in the log file when a message is received.