public function searchGameModes($search, $fields = ['name', 'slug', 'url'], $limit = 10, $offset = 0)
    {
        $apiUrl = $this->getEndpoint('game_modes');

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

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

        return $this->decodeMultiple($apiData);
    }
public function searchGameModes($search, $fields = ['name', 'slug', 'url'], $limit = 10, $offset = 0)
    {
        $apiUrl = $this->getEndpoint('game_modes');

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

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

        return $this->decodeMultiple($apiData);
    }
public function searchGameModes ( $ search , $ fields = [ 'name' , 'slug' , 'url' ] , $ limit = 10 , $ offset = 0 ) { $ apiUrl = $ this -> getEndpoint ( 'game_modes' ) ; $ params = array ( 'fields' => implode ( ',' , $ fields ) , 'limit' => $ limit , 'offset' => $ offset , 'search' => $ search , ) ; $ apiData = $ this -> apiGet ( $ apiUrl , $ params ) ; return $ this -> decodeMultiple ( $ apiData ) ; }
Search game modes by name

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