GoogleGAL_Service_Admin_Mail_Resource

The "mail" collection of methods.

Defined (1)

The class is defined in the following location(s).

/core/Google/Service/Admin.php  
  1. class GoogleGAL_Service_Admin_Mail_Resource extends GoogleGAL_Service_Resource 
  2.  
  3. /** 
  4. * Insert Mail into Google's Gmail backends (mail.insert) 
  5. * @param string $userKey The email or immutable id of the user 
  6. * @param GoogleGAL_MailItem $postBody 
  7. * @param array $optParams Optional parameters. 
  8. */ 
  9. public function insert($userKey, GoogleGAL_Service_Admin_MailItem $postBody, $optParams = array()) 
  10. $params = array('userKey' => $userKey, 'postBody' => $postBody); 
  11. $params = array_merge($params, $optParams); 
  12. return $this->call('insert', array($params));