#39 Added basic implementation
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
package de.rwu.easydrop;
|
||||
|
||||
import de.rwu.easydrop.api.client.AmazonProductDataSource;
|
||||
import de.rwu.easydrop.util.ConfigUtil;
|
||||
|
||||
/**
|
||||
* Kickoff point for the service.
|
||||
*
|
||||
@@ -19,6 +22,11 @@ public final class Main {
|
||||
* @param args
|
||||
*/
|
||||
public static void main(final String[] args) {
|
||||
System.out.println("I'm alive!");
|
||||
String amznBaseUrl = ConfigUtil.getConfig("AMAZON_API_URL");
|
||||
String amznApiKey = ConfigUtil.getConfig("AMAZON_API_KEY");
|
||||
|
||||
AmazonProductDataSource amznSrc = new AmazonProductDataSource(amznBaseUrl, amznApiKey);
|
||||
System.out.print(amznSrc.getProductDTOById("B096Y2TYKV").toString());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user