Signature Algorithm
1. Algorithm Process
Provide the required parameters:
sid(survey ID),timestamp(current timestamp in milliseconds), andalgorithm_version(signature algorithm version, using"v2"), structured in a key-value (KV) format.Sort the keys in ascending order based on ASCII values.
Iterate through the sorted key-value structure and concatenate all elements into a string using the format
"key1value1key2value2".Apply the MD5 hashing algorithm to the concatenated string to generate the
signsignature.Append the generated
signas a signature field to the key-value structure.Add
appSecretas the signature key field in the key-value structure.Convert the key-value structure into HTTP query parameters or body parameters.
Attach the generated request parameters and invoke the session authentication API.
2.Configure Open API Secret
You can find the secret corresponding to your survey here and modify it if needed.

3.Full Example
Golang
4. Signature Verification
On this page: https://test.a.imur.tencent.com/static/tools-out/#/open_api, you can enter the required parameters to generate your signature, which is used to verify that your algorithm is consistent with ours.
最后更新于
这有帮助吗?