Java SDK for eBay REST APIs
Service | Develop | Master |
---|---|---|
CI Status |
<dependency>
<groupId>com.github.rjdavis3</groupId>
<artifactId>ebay-sdk</artifactId>
<version>1.3.1</version>
</dependency>
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);
1. Install Maven
2. Install JDK 8
3. Clone the repository.
3. Navigate to repository directory and run `mvn install`