code: public Stream get(String streamKey) throws PiliException {
  
          try {
              String ekey = UrlSafeBase64.encodeToString(streamKey);
              ;
              String path = baseUrl + "/streams/" + ekey;
  
              String resp = cli.callWithGet(path);
              StreamInfo ret = gson.fromJson(resp, StreamInfo.class);
              ret.setMeta(hub, streamKey);
              return new Stream(ret, cli);
          } catch (PiliException e) {
              throw e;
          } catch (Exception e) {
              throw new PiliException(e);
          }
  
      }
docs: get stream
  
  @param streamKey
  @return
  @throws PiliException