Exporting a User List
Function
Invoke the export and download interfaces in sequence to export the user list. The output of the export interface is the input of the download interface.
Example code
The following provides an example code of exporting a user list, which uses the main method of the ExportUsers class in the rest package.
String operationName = "ExportUsers";
String exportOperationUrl = webUrl + EXPORT_URL;
HttpManager httpManager = new HttpManager();
//Invoke the export interface.
String responseLineContent = httpManager
.sendHttpPostRequestWithString(httpClient, exportOperationUrl, StringUtils.EMPTY, operationName);
//Invoke the download interface.
operationName = "DownloadUsers";
JSONObject jsonObj = JSON.parseObject(responseLineContent);
String downloadOperationUrl = webUrl + DOWNLOAD_URL + jsonObj.getString("fileName");
httpManager.sendHttpGetRequest(httpClient, downloadOperationUrl, operationName); Last Article: Deleting Users
Next Article: Application Commissioning
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.