Get Game History
curl --request GET \
--url https://103.77.224.40/platform/game-history-pathimport requests
url = "https://103.77.224.40/platform/game-history-path"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://103.77.224.40/platform/game-history-path', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://103.77.224.40/platform/game-history-path",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://103.77.224.40/platform/game-history-path"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://103.77.224.40/platform/game-history-path")
.asString();require 'uri'
require 'net/http'
url = URI("https://103.77.224.40/platform/game-history-path")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyGET /platform/game-history-path?roundId=encrypted-round-id
Location: https://history.example.com/path?roundId=encrypted-round-id
RGS Public API
Get Game History
Redirects to the game history for a round ID or transaction ID.
Get Game History
curl --request GET \
--url https://103.77.224.40/platform/game-history-pathimport requests
url = "https://103.77.224.40/platform/game-history-path"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://103.77.224.40/platform/game-history-path', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://103.77.224.40/platform/game-history-path",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://103.77.224.40/platform/game-history-path"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://103.77.224.40/platform/game-history-path")
.asString();require 'uri'
require 'net/http'
url = URI("https://103.77.224.40/platform/game-history-path")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyGET /platform/game-history-path?roundId=encrypted-round-id
Location: https://history.example.com/path?roundId=encrypted-round-id
GET /platform/game-history-path
Request Parameters
| Name | Type | Description |
|---|---|---|
| roundId | string | Required. An encoded round ID or transaction ID. Pass either value in the roundId query parameter. |
Process
- The platform decodes
roundIdas a round ID. If that fails, it tries to decode it as a transaction ID. - The platform responds with
302 Foundand aLocationheader containing the game history URL. Follow the redirect to view the history.
Response
The successful response has no JSON body. ItsLocation header contains the destination URL, which depends on the game’s software provider and the configured history URL.
GET /platform/game-history-path?roundId=encrypted-round-id
Location: https://history.example.com/path?roundId=encrypted-round-id