Notes
Ensuring API Key Security
Do not expose your API key in public repositories or client-side code.
Store the API key in environment variables or secure storage and restrict access.
Validating the Request Body
Before making an API request, ensure all required parameters are included.
In particular,
referralIdandconversionIdare mandatory fields.
Error Handling
Utilize the
error.codefield in the response to identify the cause of the error and implement appropriate handling.
Using Different Environments
Thoroughly test your implementation in the testing environment (https://staging-qube.vercel.app) before switching to the production environment (https://www.0xqube.xyz).
Addressing CORS Errors
If CORS errors occur in a browser environment, consider using a proxy server or implementing the logic on the server side.
For detailed solutions and reasons for CORS restrictions, refer to Handling CORS Errors.
Last updated
Was this helpful?