<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);

require_once __DIR__ . '/main/API/functions.php';

$user = "testing00";

// coba beberapa method
$methods = [
    "opengame",
    "launchgame",
    "launch_game",
    "start_game",
    "login_game"
];

// provider asli dari API
$provider = "M9BET";

echo "<pre>";

foreach ($methods as $method) {

    echo "TEST METHOD: $method\n";

    if (method_exists($SGX, $method)) {

        $res = $SGX->$method($user, $provider, $provider);

        print_r($res);

    } else {
        echo "Method tidak ada di functions.php\n";
    }

    echo "-----------------------\n\n";
}

echo "</pre>";