|
|
@@ -11,12 +11,21 @@ import org.apache.commons.codec.digest.HmacUtils;
|
|
|
|
|
|
public class Test {
|
|
|
public static void main(String[] args) {
|
|
|
+ //测试环境
|
|
|
// 应用ID
|
|
|
- String projectId = "1000004";
|
|
|
+ /*String projectId = "1000004";
|
|
|
// 应用密钥
|
|
|
String secret = "96Uh7CR83NkN3TA6";
|
|
|
// 接口调用域名
|
|
|
- String host = "http://122.227.225.202:9011/";
|
|
|
+ String host = "http://122.227.225.202:9011/";*/
|
|
|
+
|
|
|
+ //正式环境
|
|
|
+ // 应用ID
|
|
|
+ String projectId = "1000003";
|
|
|
+ // 应用密钥
|
|
|
+ String secret = "5V6xsY3q8JWZ9Qik";
|
|
|
+ // 接口调用域名
|
|
|
+ String host = "https://dzqz.beyond-it-service.com/";
|
|
|
|
|
|
// 请求签名鉴权-POST请求
|
|
|
testPost(projectId, secret, host);
|