Editing: /home/goacom/awcproapi.com/test.php
<?php $config = require __DIR__ . '/config/config.php'; $apiKey = ''; $clientSecret = ''; $userId = '23213'; $gameUid = '3978'; $balance = '10'; $ts = time(); $data = $apiKey . '|' . $userId . '|' . $gameUid . '|' . $balance . '|' . $ts; $sig = hash_hmac('sha256', $data, $clientSecret); $base = rtrim((string)($config['app']['url'] ?? ''), '/'); if ($base === '') { $base = 'https://gamingapia111111.online'; } $url = $base . "/v1/launch?api_key={$apiKey}&user_id={$userId}&game_uid={$gameUid}&balance={$balance}&ts={$ts}&sig={$sig}&json=1"; // API call $response = file_get_contents($url); if ($response !== false) { $result = json_decode($response, true); $gameUrl = null; if (is_array($result)) { if (!empty($result['game_url'])) { $gameUrl = $result['game_url']; } elseif (isset($result['code'], $result['data']['url']) && (int) $result['code'] === 0) { $gameUrl = $result['data']['url']; } } if ($gameUrl) { header('Location: ' . $gameUrl); exit; } else { echo "Game URL not found!"; } } else { echo "API request failed!"; } ?>
💾 Save