Our releases are available on Maven Central repository. You will find the jar files, the javadoc and all the dependencies.
Simply add the following dependency to your pom.xml:
<dependency>
<groupId>com.rocket-labs</groupId>
<artifactId>sellercenterapi</artifactId>
<version>1.0.0</version>
</dependency>
Add the following to your build.gradle:
compile 'com.rocket-labs:sellercenterapi:1.0.0'
-
You can retrieve every information required on Seller Center in Settings > Integration management > API Explorer.
-
Then you can set those variables at runtime as shown in the samples. You will need to copy the followings:
- UserID
- API Key
- API url
SellerCenter.apiKey = "Put your api key here !";
SellerCenter.userId = "[email protected]";
SellerCenter.url = "https://api-url-of-the-desired-sellercenter/";
- Try out the samples ! You will find them in src/samples folder.
First you have to retrieve resources from Seller Center by calling methods of the static class SellerCenter.
OrderList orders = SellerCenter.getOrders(new GetOrdersOptions());
Then you can use methods of the resources to get more resources:
OrderItemList items = orders.getAllItems
... or to interact with Seller Center:
items.setStatusToReadyToShip();
Visit our documentation. You will find for each calls more details about the parameters you need to provide.
You can also find all endpoints in the API explorer (Settings > Integration management > API Explorer)