import com.datasift.client.preview.HistoricsPreview;
import org.joda.time.DateTime;
public class PreviewApi {
private PreviewApi() throws InterruptedException {
DataSiftConfig config = new DataSiftConfig("username", "api-key");
final DataSiftClient datasift = new DataSiftClient(config);
Stream stream = Stream.fromString("13e9347e7da32f19fcdb08e297019d2e");
DateTime fiveHrsAgo = DateTime.now().minusHours(5);
HistoricsPreview preview = datasift.preview().create(fiveHrsAgo, stream,