public function searchGames($search, $fields = ['*'], $limit = 10, $offset = 0, $order = null)
    {
        $apiUrl = $this->getEndpoint('games');

        $params = array(
            'fields' => implode(',', $fields),
            'limit' => $limit,
            'offset' => $offset,
            'order' => $order,
            'search' => $search,
        );

        $apiData = $this->apiGet($apiUrl, $params);

        return $this->decodeMultiple($apiData);
    }
public function searchGames($search, $fields = ['*'], $limit = 10, $offset = 0, $order = null)
    {
        $apiUrl = $this->getEndpoint('games');

        $params = array(
            'fields' => implode(',', $fields),
            'limit' => $limit,
            'offset' => $offset,
            'order' => $order,
            'search' => $search,
        );

        $apiData = $this->apiGet($apiUrl, $params);

        return $this->decodeMultiple($apiData);
    }
public function searchGames ( $ search , $ fields = [ '*' ] , $ limit = 10 , $ offset = 0 , $ order = null ) { $ apiUrl = $ this -> getEndpoint ( 'games' ) ; $ params = array ( 'fields' => implode ( ',' , $ fields ) , 'limit' => $ limit , 'offset' => $ offset , 'order' => $ order , 'search' => $ search , ) ; $ apiData = $ this -> apiGet ( $ apiUrl , $ params ) ; return $ this -> decodeMultiple ( $ apiData ) ; }
Search games by name

@param string $search
@param array $fields
@param integer $limit
@param integer $offset
@param string $order
@return \StdClass
@throws \Exception
Search games by name