Example #1
0
 /**
  * @param GoogleHelper $helper
  */
 public function __construct(GoogleHelper $helper)
 {
     $this->helper = $helper;
     $client = $helper->getClient();
     $client->setScopes(array('https://www.googleapis.com/auth/drive'));
     $this->service = new \Google_Service_Drive($client);
 }
Example #2
0
 /**
  * @param GoogleHelper $helper
  */
 public function __construct(GoogleHelper $helper)
 {
     $helper->getClient()->addScope('https://apps-apis.google.com/a/feeds/emailsettings/');
     $this->helper = $helper;
 }