Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.79 KB

README.md

File metadata and controls

48 lines (38 loc) · 1.79 KB

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`