public function getCharacter($characterId, $fields = ['*'])
    {
        //dd(config('services.igdb.url'));
        $apiUrl = $this->getEndpoint('characters');
        $apiUrl .= $characterId;

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

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

        return $this->decodeSingle($apiData);
    }
public function getCharacter($characterId, $fields = ['*'])
    {
        //dd(config('services.igdb.url'));
        $apiUrl = $this->getEndpoint('characters');
        $apiUrl .= $characterId;

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

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

        return $this->decodeSingle($apiData);
    }
public function getCharacter ( $ characterId , $ fields = [ '*' ] ) { //dd(config('services.igdb.url')); $ apiUrl = $ this -> getEndpoint ( 'characters' ) ; $ apiUrl .= $ characterId ; $ params = array ( 'fields' => implode ( ',' , $ fields ) ) ; $ apiData = $ this -> apiGet ( $ apiUrl , $ params ) ; return $ this -> decodeSingle ( $ apiData ) ; }
Get character information

@param integer $characterId
@param array $fields
@return \StdClass
@throws \Exception
Get character information