com.walmart.openapi
Class ProductLookupApi

java.lang.Object
  extended by 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.


Constructor Summary
ProductLookupApi(java.lang.String apiKey)
           
ProductLookupApi(java.lang.String apiKey, java.lang.String lsPublisherId)
           
 
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
 

Constructor Detail

ProductLookupApi

public ProductLookupApi(java.lang.String apiKey,
                        java.lang.String lsPublisherId)
Parameters:
apiKey - - Can be obtained by registering on developer.walmartlabs.com
lsPublisherId - - 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
Method Detail

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