Skip to content

lemonwaysas/java-client-directkit-json2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️WARNING: This client is deprecated⚠️

The LemonWay API (called Directkit) has two implementations: DirectkitJson2 and DirectkitXml.

The DirectkitJson2 is recommended over the DirectkitXml because It is the simplest and the most network-efficient way.

This tutorial show how simple it is.

Sample codes

LemonWayService service = new LemonWayService("society", "123456");
Map<String, String> param = new HashMap<String, String>() {{
    put("wallet", "9999");
}};
JSONObject response = service.callService("GetWalletDetails", param);

See also: LemonWay API documentation / method GetWalletDetails

How to run

After downloading this project (git clone), run:

gradlew run 

Out of the box it will call the demo environment. If you have your own test environment. You should fix the configuration in LemonWayService.java, put your own environment configuration.

Time to play!

The example is only the basic, you can also play with our API by calling other services. For example:

About

Java example calling DirectKit JSON2 API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages