Introduction
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 |
1.2 Generic Header Parameters
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: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))
The following method is used to sign the access request:
Construct Canonicalized Query String using the request parameters.
message = localUserId + '_' + t key = userOpenapiKey base64_encode(hash_hmac('sha256', message, key, false));
Follow the following rules to construct the string for signature calculation using the Canonicalized Query String constructed in the previous step
Encode the HMAC value into a string based on Base64 encoding rules, and you can get the signature value (Signature).
Add the obtained signature value to the request parameters as the Signature parameter. The request signing process is completed,example:&userSecret=ODAxZGE1NmI3NDQ5Nzk0YjEzMjI1ZjJlZGY4NWNmZGE5Mzc4NGZmYjYzMjg4N2M0ODliMTkyZGU0MzBjODdkMw==&localUserId=12453&t=1693818679.
https://crashsight-docs-1258344700.cos.ap-shanghai.myqcloud.com/global/signature.py
Error Codes
API endpoints
Need to access different sites based on user's registration region:
China Website: https://crashsight.qq.com/uniform/
Overseas Website: https://crashsight.wetest.net/uniform/