Signer.Digital
User guide (Under Construction)
×
Menu
Index
Test / Ping / Health API
 
Ping or Health API may be used to test whether Kluis system is running and responding.
 
Use this API to test Kluis connectivity in case your production deployment requires special permissions or setting up policy or proxy configuration to access external url from your application.
 
Method: GET
Parameters: Requires CSCId, and Password either in Headers or Query Parameters.
 
Sample Url: https://api.signer.digital/health?Cscid=nnn&password=********
 
 
Sample C# code using Rest Sharp Http client:
 
 
 
Sample Java code using OkHttp Client:
 
//=====Health Check====================================
btnHealthCheck.addActionListener(new ActionListener() {
    @Override
    public void actionPerformed(ActionEvent e) {
        String strRespContent = "";
        try{
 
            OkHttpClient client = new OkHttpClient();
            HttpUrl.Builder urlBuilder = HttpUrl.parse("https://api.signer.digital/health").newBuilder();
            urlBuilder.addQueryParameter("Cscid", txtCscId.getText());
            urlBuilder.addQueryParameter("password", txtPassword.getText());
            Request.Builder request = new Request.Builder();
            request.url(urlBuilder.build().toString());
            request.get();
            Response response = client.newCall(request.build()).execute();
            strRespContent = response.body().string();
        }
        catch (Exception ex){
            JOptionPane.showMessageDialog(null,ex.getMessage());
        }
    }
});