private static JKrakenResult jkrakenResult;
public static void main(String[] args) {
//URL with wait
kraken = new JKraken("fa8c407e93686be8a69d1c8cec6dbb87", "3da9b85e541b705a0c6be6a5e0dbeea66079e9be");
kraken.setDebug(true);
params = new JKraken.Options();
params.setUrl("http://www.canterbury.ac.nz/brand/home/slides/engineering2.jpg");
params.setWait(true);
params.setWebp(false);
params.setLossy(true);
jkrakenResult = kraken.url(params);
//URL with callback
kraken = new JKraken("fa8c407e93686be8a69d1c8cec6dbb87", "3da9b85e541b705a0c6be6a5e0dbeea66079e9be");
kraken.setDebug(true);
params = new JKraken.Options();
params.setUrl("http://www.canterbury.ac.nz/brand/home/slides/engineering2.jpg");
params.setCallbackUrl("http://wcmsuat.canterbury.ac.nz/callback.php");
params.setWebp(false);
params.setLossy(true);
jkrakenResult = kraken.url(params);
//Upload with wait
kraken = new JKraken("fa8c407e93686be8a69d1c8cec6dbb87", "3da9b85e541b705a0c6be6a5e0dbeea66079e9be");
kraken.setDebug(true);
params = new JKraken.Options();
params.setFile("/home/davidm/Pictures/frogman-happy.jpg");
params.setWait(true);
params.setWebp(false);
params.setLossy(true);
jkrakenResult = kraken.upload(params);
//upload with Callback
kraken = new JKraken("fa8c407e93686be8a69d1c8cec6dbb87", "3da9b85e541b705a0c6be6a5e0dbeea66079e9be");
kraken.setDebug(true);
params = new JKraken.Options();
params.setFile("/home/davidm/Pictures/frogman-happy.jpg");
params.setCallbackUrl("http://wcmsuat.canterbury.ac.nz/callback.php");
params.setWebp(false);
params.setLossy(true);
jkrakenResult = kraken.upload(params);
//get user status
kraken = new JKraken("fa8c407e93686be8a69d1c8cec6dbb87", "3da9b85e541b705a0c6be6a5e0dbeea66079e9be");
kraken.setDebug(true);
jkrakenResult = kraken.status();
}