code: public FutureData<PylonSample> sample(PylonSampleRequest sampleRequest) {
          if (sampleRequest == null || sampleRequest.recordingId == null) {
              throw new IllegalArgumentException(
                      "A valid sample request object containing a recordingId is required to carry out a Pylon sample"
              );
          }
          FutureData<PylonSample> future = new FutureData<>();
          URI uri = newParams().forURL(config.newAPIEndpointURI(SAMPLE));
          try {
              JSONRequest result = config.http()
                      .postJSON(uri, new PageReader(newRequestCallback(future, new PylonSample(), config)))
                      .setData(sampleRequest);
              performRequest(future, result);
          } catch (JsonProcessingException ex) {
              throw new IllegalArgumentException("Valid JSON is required to analyze a stream");
          }
          return future;
      }
docs: /*
  Sample a Pylon recording. For information on this endpoint see documentation page:
  http://dev.datasift.com/pylon/docs/api/pylon-api-endpoints/pylonsample
  
  @param sampleRequest Request object containing parameters for Sample
  @return PylonSample object containing results of sampling