public Record [ ] historyRecord ( long start , long end ) throws PiliException { String path = appendQuery ( baseUrl + "/historyrecord" , start , end ) ; try { String resp = cli . callWithGet ( path ) ; HistoryRet ret = gson . fromJson ( resp , HistoryRet . class ) ; return ret . items ; } catch ( PiliException e ) { throw e ; } catch ( Exception e ) { throw new PiliException ( e ) ; } }
query the stream history