1. Home
  2. Docs
  3. Guides
  4. Manage Account
  5. Get Account Information

Get Account Information

This API is to obtain balance usage from current user account.

Sequence to call API to for get account information

Source Code Sample

long result = (long) jsonObj.get("result");
data = jsonObj.get("data").toString();
mac = jsonObj.get("mac").toString();
macCheck = Utils.SHA256(new StringBuilder(data).append(apiSecret).toString().getBytes());
if (result == 0) {
    if (mac.equals(macCheck)) {
        byte[] jsonData = Utils.aesEcbPkcs5PaddingDecrypt(Utils.hexString2Bytes(data), apiSecret);
        plainData = new String(jsonData).toString();
        JSONParser parser = new JSONParser();
        retJson = (JSONObject) parser.parse(plainData);
    } else {
        System.out.println("Mac account info mismatch!");
    }
}
Sample code to decrypt response to get account information

Example of Request

https://<domain>/signserver/v1/contract/account/infomation?accesstoken=xxxxxxxxxxxxxxxxx

Expected Response

{
   "info":
     {
        "dsacnt":"TG:0|PD:0",
        "smscnt":30,
        "maxsigner":10,
        "ekcycnt":0,
        "diskspace":"42MB/750GB"
     }
}

API reference : Get Account Information

How can we help?