保存进度!
This commit is contained in:
23
文档/接口/医保局接口sdk与示例/java-sdk使用例子.txt
Normal file
23
文档/接口/医保局接口sdk与示例/java-sdk使用例子.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
public static void main(String[] args) {
|
||||
String url = "";
|
||||
String appId = "待定";
|
||||
String appSecret = "待定";
|
||||
String funId = "xxx";
|
||||
SignTypeEnum signType = SignTypeEnum.SM3;
|
||||
String signKey = "待定";
|
||||
EncryptionModeEnum encType = EncryptionModeEnum.SM4;
|
||||
String encKey = "A5B6E00DA599G56C41ABFE23A74E6E60";
|
||||
try {
|
||||
DefaultZephyrClient client = new DefaultZephyrClient(url, funId, appId, appSecret,
|
||||
signType, signKey, encType, encKey);
|
||||
DefaultZephyrRequest req = new DefaultZephyrRequest();
|
||||
JSONObject jsonObject1 = new JSONObject();
|
||||
jsonObject1.put("code", "XXXXXXXXXXXXXXXXXX");
|
||||
jsonObject1.put("scene_code", "XXX");
|
||||
req.setData(jsonObject1);
|
||||
DefaultZephyrResponse resp = client.execute(req);
|
||||
System.out.println(resp.getData());
|
||||
} catch (ZephyrApiException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
6
文档/接口/医保局接口sdk与示例/测试环境配置说明.txt
Normal file
6
文档/接口/医保局接口sdk与示例/测试环境配置说明.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
appid:hxb-tb
|
||||
appSecret:60F468FB46170DD4CF6CBECE215DBFC0
|
||||
signKey:1A2F447BD0F930798D8031B137EC6E25
|
||||
encKey:08307695B1668EB9FD6210250FED874F
|
||||
|
Reference in New Issue
Block a user