Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 789 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 789 Bytes

api-ebay-shopping-java

A Java client library for Ebay Shopping's API.

Usage

Maven dependency

<dependency>
    <groupId>com.tudormatei.ebay</groupId>
    <artifactId>shopping-api</artifactId>
    <version>1.0.1</version>
</dependency>

Making API Calls

Initialize the client object

EbayShoppingClient esc = new EbayShoppingClient("your-api-key")

Find Products call

// set up the request
FindProductsRequest request = new FindProductsRequest();
request.setQueryKeywords("watch");
request.setMaxEntries(10);

// get the response
ShoppingApi shopping = esc.getShoppingApi();
FindProductsResponse response = shopping.findProducts(request.toMap());