API Credentials
Your API integration details
Authentication Credentials
Security Notice: Keep these credentials secure and never share them publicly.
API Endpoints
https://ongaming.store/api/devtools.php
Loading...
Integration Example
Step 1: Configure Your Credentials in GetGameUrl.php
// In your GetGameUrl.php file, add these three values:
define('RESELLER_API_TOKEN', 'YOUR_API_TOKEN'); // Copy from above
define('RESELLER_SECRET_KEY', 'YOUR_SECRET_KEY'); // Copy from above
define('RESELLER_PREFIX', 'YOUR_API_PREFIX'); // Copy from above
Step 2: API Call Example
// PHP Example - How to call the API
$ch = curl_init('https://ongaming.store/api/devtools.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
'userId' => '12345',
'gameCode' => 'game_code_here',
'vendorCode' => 20,
'userBalance' => 1000.00, // User's balance in INR
'language' => 0,
'phonetype' => 0,
'returnUrl' => 'https://yoursite.com'
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/json',
'X-API-Token: YOUR_API_TOKEN', // Required
'X-Secret-Key: YOUR_SECRET_KEY' // Required
]);
$response = curl_exec($ch);
$result = json_decode($response, true);
// Game URL will be in: $result['data']['url']
IMPORTANT: You must configure ALL THREE credentials (API Token, Secret Key, and Prefix) in your GetGameUrl.php file. The prefix is automatically added to user IDs.
User ID Format: When you send
userId: "12345", the system automatically adds your prefix and sends it to Dev_Tools as: prefix_12345