Right, finally all should be done and sorted. (useful links below)
This works with PHP5.
Heres a quick run down, also this is the only documentation written.
1. Include the file 'w2m.inc.php'with
include 'w2m.inc.php';
or
require 'w2m.inc.php';
2. Grabbing the Status of your MSNChange
YOUR_USERNAME_HERE with your W2M Username
$W2M_username = "YOUR_USERNAME_HERE";
$status = MSN_status($W2M_username);
echo $status;
3. Grabbing a Status Image of your MSNChange
YOUR_USERNAME_HERE with your W2M Username
Change
IMAGE_SET with one of these ("
v7","
v8","
blue","
black","
solid","
min")
$W2M_username = "YOUR_USERNAME_HERE";
$type = "IMAGE_SET";
$img = MSN_status_img($W2M_username,$type);
echo $img;
4. Grabbing Your MSN display nameChange
YOUR_USERNAME_HERE with your W2M Username
$W2M_username = "YOUR_USERNAME_HERE";
$name = MSN_dispname($W2M_username);
echo $name;
4. Grabbing Your MSN personal MessageChange
YOUR_USERNAME_HERE with your W2M Username
If you include HTML in your PM, then you can choose to have it work as HTML, just cahnge
$html to
1, but this will turn
<a href="http://example.com">Example</a> into a link such as
Example.
$W2M_username = "YOUR_USERNAME_HERE";
$html = "0";
$pm = MSN_personal($W2M_username,$html);
echo $pm;
5. Turning smilies on, in your PM or NameChange
TEXT with wither the output of your displayname OR PM
$msg = "TEXT";
$smiley = MSN_smiley($msg);
echo $smiley;
6. Send a Message to MSN via PHPThis one too me ages to write. So hope it all works fine.
Change
YOUR_USERNAME_HERE with your W2M Username and
Change
0123456789abcdef0123456789abcdef01234567 with your W2M captchabypass code
$W2M_username = "YOUR_USERNAME_HERE";
$W2M_SenderName = "ABC-XYZ Wesite";
$W2M_SenderEmail = "WebAPI@ABC-XYZ.com";
$W2M_SenderMSG = "THIS IS YOUR MESSAGE"
$W2M_CaptchaBypass = "0123456789abcdef0123456789abcdef01234567";
$send = MSN_send($W2M_username,$W2M_SenderName,$W2M_SenderEmail,$W2M_SenderMSG,$W2M_CaptchaBypass);
echo $send;
include the msn_images folder in the same location as the page that is calling up the function.
Download: http://data.aboutcher.co.uk/w2m%20API.zipDemo: http://data.aboutcher.co.uk/w2m_demo/BlurbThis is in no way written with any gurantee, the API library is not designed to collect data or destroy any data but if there is an error or bug in the API library then I hold no responability to it. I may fix bugs or may not, the API library comes with no support and you use it at your own risk.
But don't let that put you off, it should work fine.
You, may modify the code as long as you keep the original creator as myself. There are no "Powered by W2M" or "created by me" in this API library as they are easilly bypassed and annoy people but W2M say they would like a link back and I myself would like a link back to
http://www.aboutcher.co.uk.
and Fianlly, this API library is not affiliated with W2M in anyway, it just uses their very cool service.
cheers.