Signature Algorithm
- From the request parameters, exclude
sign
and all parameters with null or empty values. Then, sort the remaining parameters lexicographically.
-
After sorting, concatenate the parameters in the format “
key1value1key2value2...
”. -
Prepend the
API Key
to the string obtained from step 2. -
Convert the string from step 3 into an
md5
hash, in lowercase, to get thesign
. Include thissign
in the request parameters.
Signature Example
step 1 Assuming theAPI Key
is:
non-empty
key-value pairs in dictionary order:
API key
to the string from the previous step: