API签名生成规则

1 身份验证

为了验证您的API请求,您需要获取一个ACCESS_KEY_ID,我们会为您发放测试的ACCESS_KEY_ID和ACCESS_KEY_SECRET,测试完成,双方签订合同并支付费用后,我们会为您开通正式的ACCESS_KEY_ID和ACCESS_KEY_SECRET。

2 API签名生成规则

sign = MD5(accessKeyId + _ + timestamp + _ + saltStr + _ + accessKeySecret + _ + params + _ + accessKeyId)

其中params为接口的请求参数key值升序排列(params中的参数包含接口本身的参数及公共的请求参数)

例如有两个参数staffId=123456和compId=12222,那么params为 compId=12222&staffId=123456

示例:

params = compId=12222&staffId=123456

accessKeyId = c85256bf675449af

timestamp = 20190109114021

saltStr = 52df05fc420e02e85869f6c6a1673c56

accessKeySecret = adf991d52685c4ff3972d5d691fe2f7e


signStr = accessKeyId + _ + timestamp + _ + saltStr + _ + accessKeySecret + _ + params + _ + accessKeyId = c85256bf675449af_20190109114021_52d+f05fc420e02e85869f6c6a1673c56_adf991d52685c4ff3972d5d691fe2f7e_compId=12222&staffId=123456_c85256bf675449af


sign = MD5(signStr)= 8164335562f8cb75888347c579ec56eb