This guide explains how to use the official Composer module to interact with the API. It covers installation, setup, authentication, and using the main modules such as games, tools, reseller, and user management.⚠️ Important: Always verify which endpoints are available in which version. Not all endpoints exist in every version, and some features are only available from v3 and above. Make sure your project uses a supported API version.
Installation#
Initialization#
The client can be initialized with either an API Key, a Secret token, and optionally a custom URL:Changing Base URL#
You can change the API endpoint at runtime using setURL:Changing Version#
Authentication#
API Key#
2.
Go to Dashboard → API Keys
3.
Click Create API Key, configure permissions, and set environment to Production.
4.
Use the API Key in your client:
Secret Token (Login-based)#
Short-lived tokens provide session-based access (valid for 24 hours).You can revoke tokens when needed:Core Modules#
Games#
Reseller#
User#
OAuth2#
Request Handling#
All HTTP requests are handled internally with Guzzle, including error handling. Every method returns an array of the response.Notes#
You must provide either an API Key or a Secret token.
Secret tokens expire after 24 hours and are visible in your dashboard.
API Key and Secret are mutually exclusive; setting one clears the other.
You can optionally provide a custom baseURL at initialization. If omitted, the SDK defaults to https://api.ricardoneud.com.
The setURL method allows switching API domains at runtime (e.g., sandbox).
Always check the supported API version to ensure endpoint compatibility.
Modified at 2025-11-15 16:13:29