Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 25bac4882c |
@@ -59,7 +59,7 @@ illustrated here:
|
|||||||
String searchTerm = args[1];
|
String searchTerm = args[1];
|
||||||
int itemLimit = Integer.parseInt(args[2]);
|
int itemLimit = Integer.parseInt(args[2]);
|
||||||
Search s = new Search(apiKey, searchTerm).withLimit(itemLimit);
|
Search s = new Search(apiKey, searchTerm).withLimit(itemLimit);
|
||||||
for (SearchResult r : s.get().results()) {
|
for (SearchResult r : s.results()) {
|
||||||
System.out.println(r.productId() + "\t" + r.productName() + "\t" + r.productUrl());
|
System.out.println(r.productId() + "\t" + r.productName() + "\t" + r.productUrl());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user