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