It's an initial Java project to connect to Blibli Seller API. Please feel free to relay your comments, suggestions or corrections through pull request.
You can get final JAR to import into your Java project by download it from urls below.
Release note
- v1.3.0-2 : https://github.com/bliblidotcom/seller-api-client-java/releases/tag/1.3.0-2
- v1.2.0-3 : https://github.com/bliblidotcom/seller-api-client-java/releases/tag/1.2.0-3
- v1.1.0-1 : https://github.com/bliblidotcom/seller-api-client-java/releases/tag/1.1.0-1
You can import final JAR into your Java project using maven.
Add the following code in your pom.xml.
<!-- Add seller api client dependency -->
<dependency>
<groupId>com.blibli.oss.sellerapi.client</groupId>
<artifactId>seller-api-client</artifactId>
<version>${seller-api-client.version}</version>
</dependency>
<!-- Set seller api client version -->
<properties>
<seller-api-client.version>1.3.0-2</seller-api-client.version>
</properties>
To understand how code works, you can simply run code sample below.
Then you can dive into the codes and copy it as your needs.
Run App.java and it will work like the below sequence:
- Send token request to
https://api-uata.gdn-app.com/v2/oauth/token
- Send refresh token request with
[1]
response tohttps://api-uata.gdn-app.com/v2/oauth/token
- Send order detail request with access token from
[2]
tohttps://api-uata.gdn-app.com/v2/proxy/mta/api/businesspartner/v1/order/orderDetail
- Send fulfill order request with access token from
[2]
tohttps://api-uata.gdn-app.com/v2/proxy/mta/api/businesspartner/v1/order/fulfillRegular
Run AppBasicAuth.java and it will work like the below sequence:
- Send order detail request to
https://api-uata.gdn-app.com/v2/proxy/mta/api/businesspartner/v1/order/orderDetail
- Send fulfill order request with package id from
[1]
tohttps://api-uata.gdn-app.com/v2/proxy/seller/v1/orders/regular/{packageId}/fulfill