A finished game's Game Review.
curl --request GET \
--url https://www.smashandclash.in/api/v1/games/{id}/reviewimport requests
url = "https://www.smashandclash.in/api/v1/games/{id}/review"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.smashandclash.in/api/v1/games/{id}/review', 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://www.smashandclash.in/api/v1/games/{id}/review",
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://www.smashandclash.in/api/v1/games/{id}/review"
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://www.smashandclash.in/api/v1/games/{id}/review")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.smashandclash.in/api/v1/games/{id}/review")
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_body{
"players": {
"A": "<string>",
"B": "<string>"
},
"accuracy": {
"A": 123,
"B": 123
},
"graph": [
123
],
"moves": [
{
"n": 123,
"seat": "A",
"name": "<string>",
"class": "<string>",
"label": "<string>",
"loss": 123,
"evalA": 123
}
],
"id": "<string>",
"winner": "A",
"counts": {},
"turningPoint": 123,
"biggestBlunder": 123,
"classes": {}
}{
"status": 123,
"error": "<string>",
"code": "bad_request",
"hint": "<string>",
"type": "<string>",
"title": "<string>",
"detail": "<string>",
"docs": "<string>"
}replays
A finished game's Game Review.
Every move rated against the best one in its position, accuracy per player, the turning point and the biggest blunder. Finished games only (409 while it is on).
GET
/
games
/
{id}
/
review
A finished game's Game Review.
curl --request GET \
--url https://www.smashandclash.in/api/v1/games/{id}/reviewimport requests
url = "https://www.smashandclash.in/api/v1/games/{id}/review"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.smashandclash.in/api/v1/games/{id}/review', 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://www.smashandclash.in/api/v1/games/{id}/review",
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://www.smashandclash.in/api/v1/games/{id}/review"
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://www.smashandclash.in/api/v1/games/{id}/review")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.smashandclash.in/api/v1/games/{id}/review")
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_body{
"players": {
"A": "<string>",
"B": "<string>"
},
"accuracy": {
"A": 123,
"B": 123
},
"graph": [
123
],
"moves": [
{
"n": 123,
"seat": "A",
"name": "<string>",
"class": "<string>",
"label": "<string>",
"loss": 123,
"evalA": 123
}
],
"id": "<string>",
"winner": "A",
"counts": {},
"turningPoint": 123,
"biggestBlunder": 123,
"classes": {}
}{
"status": 123,
"error": "<string>",
"code": "bad_request",
"hint": "<string>",
"type": "<string>",
"title": "<string>",
"detail": "<string>",
"docs": "<string>"
}Response
The review.