System.out.println(new Gson().toJson(response)); | System.out.println(new Gson().toJson(response)); | ||||
} | } | ||||
/** | |||||
* 测试 | |||||
*/ | |||||
public static void main(String[] args) { | |||||
try { | |||||
String flowName = "****************"; | |||||
FlowCreateApprover personInfo = new FlowCreateApprover(); | |||||
personInfo.setApproverType(1L);//1:个人 | |||||
personInfo.setApproverName("测试"); | |||||
personInfo.setApproverMobile("13662468905"); | |||||
FlowCreateApprover[] approvers = new FlowCreateApprover[]{personInfo}; | |||||
String flowId = CreateFlowApi.CreateFlow(OperatorUserId, flowName, approvers, false); | |||||
System.out.println("flowId: " + flowId); | |||||
} catch (Exception e) { | |||||
e.printStackTrace(); | |||||
} | |||||
} | |||||
} | } | ||||
return client.CreateSchemeUrl(request); | return client.CreateSchemeUrl(request); | ||||
} | } | ||||
/** | |||||
* 测试 | |||||
*/ | |||||
public static void main(String[] args) { | |||||
try { | |||||
String flowId = "****************"; | |||||
CreateSchemeUrlResponse response = CreateSchemeUrlApi.CreateSchemeUrl(OperatorUserId, flowId); | |||||
System.out.println(new Gson().toJson(response)); | |||||
} catch (Exception e) { | |||||
e.printStackTrace(); | |||||
} | |||||
} | |||||
} | } |
return urls[0].getUrl(); | return urls[0].getUrl(); | ||||
} | } | ||||
/** | |||||
* 测试 | |||||
*/ | |||||
public static void main(String[] args) { | |||||
try { | |||||
String flowId = "****************"; | |||||
String url = DescribeFileUrlsApi.DescribeFileUrls(WechatESignatureConfig.OperatorUserId, flowId); | |||||
System.out.println("urls: " + url); | |||||
} catch (Exception e) { | |||||
e.printStackTrace(); | |||||
} | |||||
} | |||||
} | } |
return client.DescribeFlowInfo(request); | return client.DescribeFlowInfo(request); | ||||
} | } | ||||
/** | |||||
* 测试 | |||||
*/ | |||||
public static void main(String[] args) { | |||||
try { | |||||
String flowId = "****************"; | |||||
DescribeFlowInfoResponse response = DescribeFlowInfoApi.DescribeFlowInfo(OperatorUserId, flowId); | |||||
System.out.println(new Gson().toJson(response)); | |||||
} catch (Exception e) { | |||||
e.printStackTrace(); | |||||
} | |||||
} | |||||
} | } | ||||