CrashSight OpenAPI provides professional data service interface for crash/exception detection, report, analysis, and solutions, It helps developers locate and address problem more efficiently to keep improving user experience of product.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 |
Name | Required? | Description |
---|
Content-Type | Yes | application/json |
Accept-Encoding | Yes | * |
1.3 Signature#
localUserId:You can be obtained in personal information.

user_key:OpenAPI Secret Key,example:bec5b56d-7ae7-43f7-8763-51580aed5fa2

t: current unix timestamp,example:1618199626Procedure#
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))
The following method is used to sign the access request:1.
Construct Canonicalized Query String using the request parameters.message = localUserId + '_' + t
key = userOpenapiKey
base64_encode(hash_hmac('sha256', message, key, false));
2.
Follow the following rules to construct the string for signature calculation using the Canonicalized Query String constructed in the previous step
3.
Encode the HMAC value into a string based on Base64 encoding rules, and you can get the signature value (Signature).
Error Codes#
API endpoints#
Modified at 2024-12-25 07:03:46