public function get(int $id, $params = [])
    {
        if ($this->fields) {
            $params['fields'] = implode(',', $this->fields);
        }

        $uriAppend = 'byId/' . $id;
        $response  = $this->handler->handle('GET', false, $uriAppend, $params);

        return $this->make($response, false);
    }
public function get(int $id, $params = [])
    {
        if ($this->fields) {
            $params['fields'] = implode(',', $this->fields);
        }

        $uriAppend = 'byId/' . $id;
        $response  = $this->handler->handle('GET', false, $uriAppend, $params);

        return $this->make($response, false);
    }
public function get ( int $ id , $ params = [ ] ) { if ( $ this -> fields ) { $ params [ 'fields' ] = implode ( ',' , $ this -> fields ) ; } $ uriAppend = 'byId/' . $ id ; $ response = $ this -> handler -> handle ( 'GET' , false , $ uriAppend , $ params ) ; return $ this -> make ( $ response , false ) ; }
Get entity by id

@param int   $id
@param array $params

@return Entity
@throws \GuzzleHttp\Exception\GuzzleException
Get entity by id