]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/Msn/extlib/phpmsnclass/sample.php
Initial commit of msn-plugin work
[quix0rs-gnu-social.git] / plugins / Msn / extlib / phpmsnclass / sample.php
1 #!/usr/bin/php -Cq\r
2 <?php\r
3 \r
4 error_reporting(E_ALL);\r
5 include_once('msn.class.php');\r
6 \r
7 // force to use MSNP9, without debug information\r
8 // $msn = new MSN('MSNP9');\r
9 \r
10 // force to use MSNP9, with debug information\r
11 // $msn = new MSN('MSNP9', true);\r
12 \r
13 // force to use MSNP15, without debug information\r
14 // $msn = new MSN('MSNP15');\r
15 \r
16 // force to use MSNP15, with debug information\r
17 // $msn = new MSN('MSNP15', true);\r
18 \r
19 // auto detect MSN protocol, without debug information\r
20 // $msn = new MSN;\r
21 \r
22 // auto detect MSN protocol, with debug information\r
23 $msn = new MSN(array('user' => 'statusnetbot@inflatablegoldfish.com', 'password' => 'statusnetplugin', 'alias' => 'statusnetbot', 'psm' => '', 'debug' => true));\r
24 \r
25 if ($msn->Run()) {\r
26     echo "Error for connect to MSN network\n";\r
27     echo "$msn->error\n";\r
28     exit;\r
29 }\r
30 \r
31 //$msn->sendMessage('Now: '.strftime('%D %T')."\nTesting\nSecond Line\n\n\n\nand Empty Line",\r
32  //                 array(\r
33   //                  'darkip@inflatablegoldfish.com'\r
34    //                    )\r
35     //             );\r
36 echo "Done!\n";\r
37 exit;\r
38 \r
39 ?>\r
40 \r