7 Users and Organization Structure RESTFUL Interface
This document provide the information on how to get users and organizational structures list. RESTFul API document explanations.
1 Explanation
Name
Type
Mandatory
Description
{
"key":"92B4BF9322C110E225683F048013B699", //Token+Timestamp milliseconds, then use MD5/SM3 to encrypt to generate as key
"ts":"1603600893041" // Timestamp milliseconds.
}public static void main(String[] args) throws Exception{
String key = "5936562a-d47c-4a29-9b74-b310e6c971b7" ; //retrieve index method, please browse /hrm/websevice/hrm_webservice_config.jsp
long l = System.currentTimeMillis() ; // Timestamp milliseconds
String code = key.concat(Long.toString(l)) ;
String md5key = Util.getEncrypt(code).toUpperCase() ; //MD5 Encryption and change to UPPERCASE
Map<String,String> map = new HashMap<>() ;
map.put("key",md5key) ;
map.put("ts",Long.toString(l)) ;
System.out.println(JSONObject.toJSONString(map)); //Token string
}2 Get Divisions List
Name
Type
Mandatory
Description
Name
Type
Mandatory
Description
3 Get Departments List
Name
Type
Mandatory
Description
Name
Type
Mandatory
Description
4 Get Positions List
Name
Type
Mandatory
Description
Name
Type
Mandatory
Description
5 Get Users List
Name
Type
Mandatory
Description
Name
Type
Mandatory
Description
6 Sync Division
Name
Type
Mandatory
Description
7 Sync Department
Name
Type
Mandatory
Description
8 Sync Positions
Name
Type
Mandatory
Description
9 Sync Users
Name
Type
Mandatory
Description
Last updated

