com.walmart.openapi
Class ProductLookupApi
java.lang.Object
com.walmart.openapi.ProductLookupApi
public class ProductLookupApi
- extends java.lang.Object
Make calls to the product lookup API.
Useful to fetch the latest price and availability of Walmart.com items.
|
Method Summary |
Item |
getItem(int itemId)
Call this method to get details about an item in Walmart catalog. |
java.util.concurrent.Future<Item> |
getItemFuture(int itemId)
Call this method to get details about an item in Walmart catalog. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProductLookupApi
public ProductLookupApi(java.lang.String apiKey,
java.lang.String lsPublisherId)
- Parameters:
apiKey - - Can be obtained by registering on developer.walmartlabs.comlsPublisherId - - By providing your publisher id you can get paid links
associated with your linkshare account. You can register
at affiliates.walmart.com to create your linkshare account.
ProductLookupApi
public ProductLookupApi(java.lang.String apiKey)
- Parameters:
apiKey - - Can be obtained by registering on developer.walmartlabs.com
getItem
public Item getItem(int itemId)
throws java.util.concurrent.ExecutionException,
java.lang.InterruptedException,
java.io.IOException
- Call this method to get details about an item in Walmart catalog.
- Parameters:
itemId - id of the item to be fetched.
- Returns:
- Returns an json with all the details about the item requested.
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
java.io.IOException
getItemFuture
public java.util.concurrent.Future<Item> getItemFuture(int itemId)
throws java.util.concurrent.ExecutionException,
java.lang.InterruptedException,
java.io.IOException,
java.lang.NullPointerException
- Call this method to get details about an item in Walmart catalog.
- Parameters:
itemId - id of the item to be fetched.
- Returns:
- Returns an json with all the details about the item requested.
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
java.io.IOException
java.lang.NullPointerException