public function refreshToken() {
    if ($this->apiClient->getAccessToken() != null) {
      $dbh = new PDO('sqlite:examples.sqlite');
      $this->saveToken($dbh, true, $this->apiClient->getAccessToken());
    }
  }
public function refreshToken() {
    if ($this->apiClient->getAccessToken() != null) {
      $dbh = new PDO('sqlite:examples.sqlite');
      $this->saveToken($dbh, true, $this->apiClient->getAccessToken());
    }
  }
public function refreshToken ( ) { if ( $ this -> apiClient -> getAccessToken ( ) != null ) { $ dbh = new PDO ( 'sqlite:examples.sqlite' ) ; $ this -> saveToken ( $ dbh , true , $ this -> apiClient -> getAccessToken ( ) ) ; } }
During the request, the access code might have been changed for another.
This function updates the token in the db.
During the request the access code might have been changed for another . This function updates the token in the db .