/** * @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); }
/** * @param GoogleHelper $helper */ public function __construct(GoogleHelper $helper) { $helper->getClient()->addScope('https://apps-apis.google.com/a/feeds/emailsettings/'); $this->helper = $helper; }