Skip to content

rjdavis3/ebay-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eBay SDK

Java SDK for eBay REST APIs

Service Develop Master
CI Status Build Status Build Status

Maven

	<dependency>
	    <groupId>com.github.rjdavis3</groupId>
	    <artifactId>ebay-sdk</artifactId>
	    <version>1.3.1</version>
	</dependency>

Quickstart

Creating SDK with refresh token then making a sample call:

	final RequestRetryConfiguration requestRetryConfiguration = RequestRetryConfiguration.newBuilder()
			.withMininumWait(5, TimeUnit.SECONDS).withTimeout(2, TimeUnit.MINUTES).build();
	final EbaySdk ebaySdk = EbaySdk.newBuilder().withClientId(clientId).withClientSecret(clientSecret)
			.withRefreshToken(refreshToken).withRequestRetryConfiguration(requestRetryConfiguration)
			.withSandbox(false).build();
	final InventoryItem inventoryItem = ebaySdk.getInventoryItem(sku);

Creating SDK with RuName and temporary authorization code then making a sample call:

	final RequestRetryConfiguration requestRetryConfiguration = RequestRetryConfiguration.newBuilder()
			.withMininumWait(5, TimeUnit.SECONDS).withTimeout(2, TimeUnit.MINUTES).build();
	final EbaySdk ebaySdk = EbaySdk.newBuilder().withClientId(clientId).withClientSecret(clientSecret)
			.withRuName(ruName).withCode(authorizationCode)
			.withRequestRetryConfiguration(requestRetryConfiguration).withSandbox(false)
			.build();
	final InventoryItem inventoryItem = ebaySdk.getInventoryItem(sku);

Building from source

1. Install Maven
2. Install JDK 8
3. Clone the repository.
3. Navigate to repository directory and run `mvn install`