private function retrieveToken($scopes, $cacheKey)
  {
    $this->token = AppIdentityService::getAccessToken($scopes);
    if ($this->token) {
      $this->client->getCache()->set(
          $cacheKey,
          $this->token
      );
    }
  }
private function retrieveToken($scopes, $cacheKey)
  {
    $this->token = AppIdentityService::getAccessToken($scopes);
    if ($this->token) {
      $this->client->getCache()->set(
          $cacheKey,
          $this->token
      );
    }
  }
private function retrieveToken ( $ scopes , $ cacheKey ) { $ this -> token = AppIdentityService :: getAccessToken ( $ scopes ) ; if ( $ this -> token ) { $ this -> client -> getCache ( ) -> set ( $ cacheKey , $ this -> token ) ; } }
Retrieve a new access token and store it in cache
@param mixed $scopes
@param string $cacheKey
Retrieve a new access token and store it in cache