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