how can i read a gmail subject with php api?
问题 in witch mode a can read the email subject with php api ? i do this code // Get the API client and construct the service object. $client = getClient(); $service = new Google_Service_Gmail($client); // Print the labels in the user's account. $user = 'me'; $results = $service->users_messages->listUsersMessages($user); foreach($results as $mail){ $optParamsGet['format'] = 'metadata'; // Display message in payload $message = $service->users_messages->get($user, $mail['id'],$optParamsGet);