This class grabs contact list from your Gmail addressbook
Here's how it works:
- Takes your gmail login and password
- Connects to gmail using the given login and password
- Retrieves contact list if the connection is successful for valid login information
- Parses the retrieved data
- Filters that data and takes it to an asociative array of "email"=>"name" format as well as to a table
$obj = new GrabGmail();
$obj->setLoginInfo($login, $password);
$obj->setCaBundleFile("D:/Rupom/xampp/htdocs/xampp/Test/ca-bundle.crt");//change it according to your info
$obj->setProxy("proxy.citech.net:8000");//change it according to your info
$obj->prepareContactList();
$obj->dBug("========== All Contacts of <b>$login@gmail.com</b> ==============");
$obj->dBug('---- Contacts in Table ------');
$resultTable = $obj->getResultTable();
$obj->dBug($resultTable);
$obj->dBug('---- Contacts in Array ------');
$resultArray = $obj->getResultArray();
$obj->dBug($resultArray);
?>