Ver Mensaje Individual
  #11 (permalink)  
Antiguo 13/02/2007, 22:35
Avatar de dopon
dopon
 
Fecha de Ingreso: julio-2005
Ubicación: Cucuta / Colombia
Mensajes: 493
Antigüedad: 18 años, 10 meses
Puntos: 1
Re: Importar Contactos de Hotmail, Gmail con PHP

para gmail visita este enlace se basa en la libreria gmailer

http://torrentialwebdev.com/blog/arc...tact-list.html

libgmailer.php -> http://gmail-lite.sourceforge.net/

Código PHP:
<?php
 
require_once("libgmailer.php");
    
 
$gmail_acc "username";
 
$gmail_pwd "acc_pass";
 
$my_timezone 0;
  
 
$gmailer = new GMailer();
 if (
$gmailer->created) {
 
$gmailer->setLoginInfo($gmail_acc$gmail_pwd$my_timezone);
 
 
//uncomment if you need it
 //$gmailer->setProxy("proxy.company.com");
 
 
if ($gmailer->connect()) {
 
// GMailer connected to Gmail successfully.
 // Do something with it.
 
 //Get the contacts
 // For "Inbox"
 
 
$gmailer->fetchBox(GM_CONTACT"all""");
 
 
$snapshot $gmailer->getSnapshot(GM_CONTACT);
 
 
 
//Outputs an array of the contacts
 
var_dump($snapshot->contacts);
 
 
//Outputs the number of contacts
 
var_dump($snapshot->contacts_total);
 
 
 
 } else {
 die(
"Fail to connect because: ".$gmailer->lastActionStatus());
 }
 } else {
 die(
"Failed to create GMailer because: ".$gmailer->lastActionStatus());
 }
 
 
?>

Para hotmail bajate este archivo

http://www.jmstreet.info/tools/msn_contact_grab.zip

visita este enlace ;) para ver lo de hotmail y gmail mas a fondo

http://torrentialwebdev.com/blog/arc...-tutorial.html

Última edición por dopon; 13/02/2007 a las 22:53 Razón: formateo d emensaje