The deck: every card, with side values, colour or effect, and its image.
curl --request GET \
--url https://www.smashandclash.in/api/v1/games/cardsimport requests
url = "https://www.smashandclash.in/api/v1/games/cards"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.smashandclash.in/api/v1/games/cards', 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/cards",
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/cards"
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/cards")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.smashandclash.in/api/v1/games/cards")
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{
"cards": [
{
"id": 123,
"name": "<string>",
"kind": "character",
"image": "<string>",
"top": 123,
"right": 123,
"bottom": 123,
"left": 123,
"color": "<string>",
"effect": "BOULDER",
"does": "<string>"
}
]
}games
The deck: every card, with side values, colour or effect, and its image.
The deck: 46 characters (side values as printed, colour) and 5 effect cards (what they do), one copy each.
GET
/
games
/
cards
The deck: every card, with side values, colour or effect, and its image.
curl --request GET \
--url https://www.smashandclash.in/api/v1/games/cardsimport requests
url = "https://www.smashandclash.in/api/v1/games/cards"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.smashandclash.in/api/v1/games/cards', 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/cards",
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/cards"
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/cards")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.smashandclash.in/api/v1/games/cards")
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{
"cards": [
{
"id": 123,
"name": "<string>",
"kind": "character",
"image": "<string>",
"top": 123,
"right": 123,
"bottom": 123,
"left": 123,
"color": "<string>",
"effect": "BOULDER",
"does": "<string>"
}
]
}Response
200 - application/json
The cards.
Show child attributes
Show child attributes