Example:
Craftgate craftgate = new Craftgate("api-key", "secret-key", "https://sandbox-api.craftgate.io", 10000, 15000);
Or
MyHTTPClient httpInstance = new MyHttpClient(); // implements an interface or extend Base class.
Craftgate craftgate = new Craftgate("api-key", "secret-key", "https://sandbox-api.craftgate.io", http);
Why we need this feature:
Default http Client usege in the SDK blocks API java project when SDK occurs timeout on network.. Timeout values depends many things. And SDK can't know these.
Example:
Or
Why we need this feature:
Default http Client usege in the SDK blocks API java project when SDK occurs timeout on network.. Timeout values depends many things. And SDK can't know these.