Lesen Sie Nachrichten von Google Mail, PHP, Gmail API

Habe ich donwloaded neue Gmail-API source-code von Google-PHP-client-Bibliothek.

Ich initialisiert ist der service mit:

set_include_path("./google-api-php-client-master/src/".PATH_SEPARATOR.get_include_path());

require_once 'Google/Client.php';   
require_once 'Google/Service/Gmail.php';

$client = new Google_Client();
$client->setClientId($this->config->item('gmailapi_clientid'));
$client->setClientSecret($this->config->item('gmailapi_clientsecret'));
$client->setRedirectUri(base_url('auth'));
$client->addScope('email');
//$client->addScope('profile');     
$client->addScope('https://mail.google.com');           
$client->setAccessType('offline');

$gmailService = new Google_Service_Gmail($client);

Was soll ich als Nächstes tun? Wie zu Lesen, Gmail-Nachrichten, die Gmail-API-PHP-Bibliothek?

InformationsquelleAutor der Frage Anandhan | 2014-07-01

Schreibe einen Kommentar