GET /cards/quickdraw
Создание новой колоды и немедленная раздача карт в одном запросе. Идеально для быстрого прототипирования карточных игр.
count
необязательный
по умолчанию: 5
Number of cards to draw
| Название | Обязательный | По умолчанию | Описание |
|---|---|---|---|
count |
Нет | 5 | Number of cards to draw |
curl "https://nordapi.ee/api/v1/cards/quickdraw?count=5"
{
"data": {
"cards": [
{
"code": "0S",
"image": "https://deckofcardsapi.com/static/img/0S.png",
"suit": "SPADES",
"value": "10"
},
{
"code": "9D",
"image": "https://deckofcardsapi.com/static/img/9D.png",
"suit": "DIAMONDS",
"value": "9"
},
{
"code": "3H",
"image": "https://deckofcardsapi.com/static/img/3H.png",
"suit": "HEARTS",
"value": "3"
},
{
"code": "9H",
"image": "https://deckofcardsapi.com/static/img/9H.png",
"suit": "HEARTS",
"value": "9"
},
{
"code": "9C",
"image": "https://deckofcardsapi.com/static/img/9C.png",
"suit": "CLUBS",
"value": "9"
}
],
"deck_id": "y7bm8v4it5cf",
"remaining": 47
},
"success": true
}