コード例 #1
0
 protected function initApi($accessToken, $refreshToken)
 {
     $this->restApi->getApi()->setCredentials($accessToken, $refreshToken);
     $this->restApi->getApi()->setRefreshTokenCallback([$this, 'refreshTokenCallback']);
 }
コード例 #2
0
 protected function initApi()
 {
     $this->googleDriveApi->getApi()->setCredentials($this->currAccount->getAccessToken(), $this->currAccount->getRefreshToken());
     $this->googleDriveApi->getApi()->setRefreshTokenCallback(array($this, 'refreshTokenCallback'));
 }