protected function initApi($accessToken, $refreshToken) { $this->restApi->getApi()->setCredentials($accessToken, $refreshToken); $this->restApi->getApi()->setRefreshTokenCallback([$this, 'refreshTokenCallback']); }
protected function initApi() { $this->googleDriveApi->getApi()->setCredentials($this->currAccount->getAccessToken(), $this->currAccount->getRefreshToken()); $this->googleDriveApi->getApi()->setRefreshTokenCallback(array($this, 'refreshTokenCallback')); }