An open API service indexing awesome lists of open source software.

https://github.com/rjdavis3/ebay-sdk

Java SDK for eBay REST APIs
https://github.com/rjdavis3/ebay-sdk

ebay java-sdk maven mavencentral rest

Last synced: 4 months ago
JSON representation

Java SDK for eBay REST APIs

Awesome Lists containing this project

README

          

# eBay SDK

Java SDK for eBay REST APIs

| Service | Develop | Master |
|-----------|---------|--------|
| CI Status | [![Build Status](https://travis-ci.org/rjdavis3/ebay-sdk.svg?branch=develop)](https://travis-ci.org/rjdavis3/ebay-sdk) | [![Build Status](https://travis-ci.org/rjdavis3/ebay-sdk.svg?branch=master)](https://travis-ci.org/rjdavis3/ebay-sdk) |

## Maven
```xml

com.github.rjdavis3
ebay-sdk
1.3.1

```

## Quickstart
Creating SDK with refresh token then making a sample call:

```java
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:

```java
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`