com.jimmoores.quandl.example.Example1 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quandl-jersey1 Show documentation
Show all versions of quandl-jersey1 Show documentation
Quandl REST API wrapper for Java
The newest version!
package com.jimmoores.quandl.example;
import com.jimmoores.quandl.DataSetRequest;
import com.jimmoores.quandl.QuandlSession;
import com.jimmoores.quandl.TabularResult;
/**
* Example 1.
*/
public final class Example1 {
/**
* Private default constructor.
*/
private Example1() {
}
/**
* The main body of the code.
*/
private void run() {
QuandlSession session = QuandlSession.create();
TabularResult tabularResult = session.getDataSet(
DataSetRequest.Builder.of("WIKI/AAPL").build());
System.out.println(tabularResult.toPrettyPrintedString());
}
/**
* Main entry point.
* @param args command line arguments
*/
public static void main(final String[] args) {
Example1 example = new Example1();
example.run();
}
}