Net::YMSG - An updated interface to Yahoo Messenger protocol 11.
use Net::YMSG;
my $yahoo = new Net::YMSG;
...
Create a new object.
Define an event handler. setHandlers is a grammatical alias for setHandler.
Attempt to connect to Yahoo's network. If you didn't previously define a YahooID and Password (e.g. in the constructor) you can pass them into this method.
Run a single event loop with the server. This will receive any events that the server is sending to our client and act on them accordingly. As long as the connection stays up, this method returns true.
Sign out of Yahoo.
Change your online status. status is one of the following:
YMSG_STATUS_ONLINE YMSG_STATUS_AWAY
Additionally you may set a custom away message when going away.
Send an instant message to YahooID.
Send a typing notification to YahooID. status can be one of:
YMSG_TYPING_STARTED 1 YMSG_TYPING_STOPPED 0
Send a "buzz!" to YahooID.
Add a buddy to your buddy list. Both YahooID and Group are required.
Remove a buddy from your buddy list. Both YahooID and Group are required.
If you got a NewContact event from YahooID requesting to add you to their
buddy list, respond by calling this method to accept it. Otherwise, call
rejectBuddy.
Reject a buddy's add request and send message as your reason why.
Turn a status number into a human-readable string. Potential strings are:
ONLINE BRB BUSY NOTATHOME NOTATDESK NOTINOFFICE ONPHONE ONVACATION OUTTOLUNCH STEPPEDOUT INVISIBLE CUSTOM IDLE OFFLINE TYPING
Returns undef if not known.
You should refrain from calling these methods manually.
Prepare a YMSG packet and send it.
Turn the binary param data into a hashref and return it.
Format a Yahoo! ID (lowercase it).
This event is called after the authentication with the server was successful.
The server has sent your buddy list information. Buddies and Groups are
arrayrefs containing your buddy list.
The user YahooID has sent you a message over IM.
The user YahooID has started or stopped typing. typing will be 1 if the
user is typing and 0 if they've stopped.
A user on your buddy list has changed their status. status will be a status
code similar to what you would use in setStatus(). If they have a custom
status message, message will be that message.
You can get a human-readable version of their status by calling
statusToString().