Signature Algorithm
最后更新于
这有帮助吗?
最后更新于
这有帮助吗?
Provide the required parameters: sid
(survey ID), timestamp
(current timestamp in milliseconds), and algorithm_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 sign
signature.
Append the generated sign
as a signature field to the key-value structure.
Add appSecret
as 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.
You can find the secret corresponding to your survey here and modify it if needed.
On this page: , you can enter the required parameters to generate your signature, which is used to verify that your algorithm is consistent with ours.