Open ghost opened 3 years ago
Added the setWatch function to the GmailConnection.php class
/**
@return \Google_Service_Gmail_WatchResponse */ public function setWatch($userId, Google_Service_Gmail_WatchRequest $postData) { $service = new Google_Service_Gmail($this);
return $service->users->watch($userId, $postData);
}
I would like to receive notifications about changes in the mailbox and only then download unread emails from GMail. How to implement this?