PHP Classes

Example Send Receive Messege

Recommend this page to a friend!

      YMSG  >  All threads  >  Example Send Receive Messege  >  (Un) Subscribe thread alerts  
Subject:Example Send Receive Messege
Summary:Give me example for Send and Receive Messger with this class
Messages:2
Author:haris4web
Date:2014-04-06 00:09:15
Update:2014-06-01 19:35:52
 

  1. Example Send Receive Messege   Reply   Report abuse  
Picture of haris4web haris4web - 2014-04-06 00:09:16
Hi,

Can you give me example for Send and Receive Messger with this class.

Thanks,
Haris

  2. Re: Example Send Receive Messege   Reply   Report abuse  
Picture of Sandu Adrian Sandu Adrian - 2014-06-01 19:35:52 - In reply to message 1 from haris4web
Well,
You could put everything in a while true loop .. :)

while(TRUE){
$ymsg->parsepackets();
sleep(2);
}

Like in the example .. this would show you all the messages and status changes .. you could probably filter stuff out :)

There's a public function exposed named YahooPrivateMessage which takes 2 params, the destination and the message. The whole class should be pretty explanatory ..