GET /cards/quickdraw
Créez un nouveau jeu de cartes et immediately draw cards in one request. Idéal pour les quick card game prototyping.
count
optionnel
par défaut: 5
Number of cards to draw
| Nom | Requis | Par défaut | Description |
|---|---|---|---|
count |
Non | 5 | Number of cards to draw |
curl "https://nordapi.ee/api/v1/cards/quickdraw?count=5"
{
"data": {
"cards": [
{
"code": "2H",
"image": "https://deckofcardsapi.com/static/img/2H.png",
"suit": "HEARTS",
"value": "2"
},
{
"code": "8H",
"image": "https://deckofcardsapi.com/static/img/8H.png",
"suit": "HEARTS",
"value": "8"
},
{
"code": "4H",
"image": "https://deckofcardsapi.com/static/img/4H.png",
"suit": "HEARTS",
"value": "4"
},
{
"code": "9C",
"image": "https://deckofcardsapi.com/static/img/9C.png",
"suit": "CLUBS",
"value": "9"
},
{
"code": "2D",
"image": "https://deckofcardsapi.com/static/img/2D.png",
"suit": "DIAMONDS",
"value": "2"
}
],
"deck_id": "yqp2o0ojtfjx",
"remaining": 47
},
"success": true
}