Skip to content

Commit c5532cd

Browse files
committed
* Improve README.md
1 parent 86abdf4 commit c5532cd

File tree

1 file changed

+65
-4
lines changed

1 file changed

+65
-4
lines changed

README.md

Lines changed: 65 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,68 @@
33
It's an initial Java project to connect to Blibli Seller API.
44
Please feel free to relay your comments, suggestions or corrections through pull request.
55

6-
Installation step:
7-
1. Download/clone the initial project
8-
2. Look at 'App.java' as a main class. It show you to use the client's code
9-
3. Or download the final .jar here https://github.com/bliblidotcom/seller-api-client-java/releases/tag/1.0.0-1
6+
### Setup
7+
8+
##### Option 1 - Import Final JAR Into Your Java Project
9+
10+
> You can get final JAR to import into your Java project by download it from urls below.
11+
> [Release note](https://github.com/bliblidotcom/seller-api-client-java/releases)
12+
13+
- v1.2.0-3 : https://github.com/bliblidotcom/seller-api-client-java/releases/tag/1.2.0-3
14+
- v1.1.0-1 : https://github.com/bliblidotcom/seller-api-client-java/releases/tag/1.1.0-1
15+
16+
##### Option 2 - Import Maven Dependency
17+
18+
> You can import final JAR into your Java project using maven.
19+
> Add the following code in your pom.xml.
20+
21+
```xml
22+
<!-- Add seller api client dependency -->
23+
<dependency>
24+
<groupId>com.blibli.oss.sellerapi.client</groupId>
25+
<artifactId>seller-api-client</artifactId>
26+
<version>${seller-api-client.version}</version>
27+
</dependency>
28+
29+
<!-- Set seller api client version -->
30+
<properties>
31+
<seller-api-client.version>1.2.0-3</seller-api-client.version>
32+
</properties>
33+
34+
<!-- add blibli bintray repository -->
35+
<repositories>
36+
<repository>
37+
<snapshots>
38+
<enabled>false</enabled>
39+
</snapshots>
40+
<id>bintray-bliblidotcom-maven</id>
41+
<name>bintray</name>
42+
<url>https://dl.bintray.com/bliblidotcom/maven</url>
43+
</repository>
44+
</repositories>
45+
```
46+
47+
##### Option 3 - Copy Client SDK Codes Into Your Java Project
48+
49+
> To understand how code works, you can simply run code sample below.
50+
> Then you can dive into the codes and copy it as your needs.
51+
52+
### Sample Codes
53+
54+
<hr>
55+
56+
##### OAuth Flow
57+
58+
> Run App.java and it will work like the below sequence:
59+
60+
1. Send token request to `https://api-uata.gdn-app.com/v2/oauth/token`
61+
2. Send refresh token request with `[1]` response to `https://api-uata.gdn-app.com/v2/oauth/token`
62+
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`
63+
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`
64+
65+
##### Basic Auth Flow
66+
67+
> Run AppBasicAuth.java and it will work like the below sequence:
68+
69+
1. Send order detail request to `https://api-uata.gdn-app.com/v2/proxy/mta/api/businesspartner/v1/order/orderDetail`
70+
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`

0 commit comments

Comments
 (0)