rjdavis3 / ebay-sdk

Java SDK for eBay REST APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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`

About

Java SDK for eBay REST APIs

License:Apache License 2.0


Languages

Language:Java 99.4%Language:Shell 0.6%