Код: Выделить всё
$gmail = new Google_Service_Gmail($client);
$response = $gmail->users_settings_sendAs->list('my@email.tld');
Код: Выделить всё
[Mon Apr 24 12:50:37.233655 2023] [proxy_fcgi:error] [pid 4185936:tid 139798719207168] [client 90.161.67.44:35704] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined method Google\\Service\\Gmail\\Resource\\UsersSettingsSendAs::list() in /path/to/index.php:19\nStack trace:\n#0 {main}\n thrown in /path/to/index.php on line 19'
Код: Выделить всё
$gmail = new Google_Service_Gmail($client);
$response = $gmail->users_settings_sendAs->get('my@email.tld','my@email.tld')->getSignature();
Код: Выделить всё
$this->users_settings_sendAs = new Gmail\Resource\UsersSettingsSendAs(
$this,
$this->serviceName,
'sendAs',
[
'methods' => [
...,'get' => [
'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}',
'httpMethod' => 'GET',
'parameters' => [
'userId' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'sendAsEmail' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'gmail/v1/users/{userId}/settings/sendAs',
'httpMethod' => 'GET',
'parameters' => [
'userId' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],...
Подробнее здесь: https://stackoverflow.com/questions/760 ... sendaslist
Мобильная версия