Aller au contenu

Obtenir un set

Requête

$set = $tcgdex->fetchSet('swsh3');

Voir comment configurer le SDK PHP

Exemple de Réponse 200

{
"cardCount": {
"firstEd": 0,
"holo": 64,
"normal": 137,
"official": 189,
"reverse": 155,
"total": 201
},
"cards": [
{
"id": "swsh3-1",
"image": "https://assets.tcgdex.net/fr/swsh/swsh3/1",
"localId": "1",
"name": "Papilusion V"
},
// ...
{
"id": "swsh3-136",
"image": "https://assets.tcgdex.net/fr/swsh/swsh3/136",
"localId": "136",
"name": "Fouinar"
},
// ...
{
"id": "swsh3-201",
"image": "https://assets.tcgdex.net/fr/swsh/swsh3/201",
"localId": "201",
"name": "Énergie Capture"
}
],
"id": "swsh3",
"legal": {
"expanded": true,
"standard": false
},
"logo": "https://assets.tcgdex.net/fr/swsh/swsh3/logo",
"name": "Ténèbres Embrasées",
"releaseDate": "2020-08-14",
"serie": {
"id": "swsh",
"name": "Épée et Bouclier"
},
"symbol": "https://assets.tcgdex.net/univ/swsh/swsh3/symbol"
}

Réponse 404

Le set n’a pas été trouvée :( elle retournera un message d’erreur global (non traduit)

{
"error": "Endpoint or id not found"
}