Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 2.28 KB

README.md

File metadata and controls

59 lines (40 loc) · 2.28 KB

Seller API Client for Java

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.

Setup

Option 1 - Import Final JAR Into Your Java Project

You can get final JAR to import into your Java project by download it from urls below.
Release note

Option 2 - Import Maven Dependency

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>
Option 3 - Copy Client SDK Codes Into Your Java Project

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.

Sample Codes


OAuth Flow

Run App.java and it will work like the below sequence:

  1. Send token request to https://api-uata.gdn-app.com/v2/oauth/token
  2. Send refresh token request with [1] response to https://api-uata.gdn-app.com/v2/oauth/token
  3. Send order detail request with access token from [2] to https://api-uata.gdn-app.com/v2/proxy/mta/api/businesspartner/v1/order/orderDetail
  4. Send fulfill order request with access token from [2] to https://api-uata.gdn-app.com/v2/proxy/mta/api/businesspartner/v1/order/fulfillRegular
Basic Auth Flow

Run AppBasicAuth.java and it will work like the below sequence:

  1. Send order detail request to https://api-uata.gdn-app.com/v2/proxy/mta/api/businesspartner/v1/order/orderDetail
  2. Send fulfill order request with package id from [1] to https://api-uata.gdn-app.com/v2/proxy/seller/v1/orders/regular/{packageId}/fulfill