1

in witch mode a can read the Gmail ApI email body with PHP.

$client = getClient();
$service = new Google_Service_Gmail($client);
$user = 'me';
$results = $service->users_messages->listUsersMessages($user);
$messageId = $results[0]->getId();
$optParamsGet = array();
$optParamsGet['format'] = full;
$message = $service->users_messages->get('me',$messageId,$optParamsGet);

What do I need to do next?

I tried print_r of the $message Array I don't understand where is the body.

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
colapiombo
  • 179
  • 1
  • 3
  • 13

0 Answers0