Introduction
Signatures and restrictions
Public request parameters
1.1 URL Signature Parameters
Name | Type | Required? | Description |
---|---|---|---|
t | int | Yes | The request’s unix timestamp which the base unit of time is sencod. |
userSecret | String | Yes | The signature result string. See Signature for the signature calculation method. |
localUserId | String | Yes | UserID |
1.2 Generic Header Parameters
Name | Required? | Description |
---|---|---|
Content-Type | Yes | application/json |
Accept-Encoding | Yes | * |
1.3 Signature
user_key:OpenAPI Secret Key,example:bec5b56d-7ae7-43f7-8763-51580aed5fa2
t: current unix timestamp,example:1618199626
Procedure
base64.b64encode(bytes(hmac.new(bytes(self.user_key, 'utf-8'), bytes(str(self.local_user_id) + '_' + str(self.t), 'utf-8'), digestmod=hashlib.sha256).hexdigest(), encoding=utf8))
1.
message = localUserId + '_' + t
key = userOpenapiKey
base64_encode(hash_hmac('sha256', message, key, false));
2.
3.
4.
https://crashsight-docs-1258344700.cos.ap-shanghai.myqcloud.com/global/signature.py
Error Codes
API endpoints
China Website: https://crashsight.qq.com/uniform/
Overseas Website: https://crashsight.wetest.net/uniform/
Modified at 2024-12-25 07:03:46