AIM contact list grabber
I haven't really talked much about this script on the blog. There are just a couple of posts here and here.
The reason being that it doesn't really do what I want. I was always looking for scripts that returned email contact lists. This script returns the AIM screen names which aren't always associated with email addresses. When you register an AIM screen name AOL reserves an email address for you as well but as far as I'm aware relatively few people actually use it.
Grab the Script
The script can be downloaded as a zip archive from here.
Grabbing the contact list
The code you need to retrieve the AIM contact list with this script is as follows.
include("aimclassw.php");
//include("dconnection.php");
$screenName=""; //Your bots screen name
$password=""; //Your bots password
$b=new Aim;
$b->connect($screenName,$password);
$b->signon();
$x=0;
while($x < 5)
{
$b->receive();
$b->myLastReceived="";
$x++;
}
//Get contacts
$contacts = $b->getBuddies();
var_dump($contacts);
?>
If you do have any problems or want to give any other sort of feedback please post it in the comments of this thread.