public static void main(String... args) throws InterruptedException {
DataSiftConfig config = new DataSiftConfig("zcourts", "acbf4788f875db9fdf6bbd2131b10752");
final DataSiftClient datasift = new DataSiftClient(config);
Stream stream = Stream.fromString("13e9347e7da32f19fcdb08e297019d2e");
PreparedHistoricsQuery historic = datasift.historics().prepare(stream.hash(), DateTime.now().minusHours(5),
DateTime.now().minusHours(4), "Historics pull test").sync();
PushSubscription historicsSubscription = datasift.push()
.createPull(PullJsonType.JSON_NEW_LINE, historic, "pull test " + DateTime.now()).sync();