require_once 'google-api-php-client/src/Google_Client.php';
require_once 'google-api-php-client/src/contrib/Google_DirectoryService.php';
session_start();
$gClient = new Google_Client();
$gClient->setApplicationName('apigoogle');
$gClient->setClientId('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX');
$gClient->setClientSecret('XXXXXXXXXXXXXXXXXXXXXXXXXXXX');
$gClient->setDeveloperKey('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX');
$directory = new Google_DirectoryService($gClient);
$Alias = new Google_Alias();
$servicoAlias = new Google_UsersAliasesServiceResource();
But this don't work, the Google_UsersAliasesServiceResource class needs 4 variables of parameters, but i don't know how use, sombeboy can helpe me?