GET /cards/quickdraw
Luo uusi pakka ja nosta kortit välittömästi yhdellä pyynnöllä. Täydellinen korttipelin nopeaan prototypointiin.Luo uusi korttipakka ja nosta kortit välittömästi yhdellä pyynnöllä. Sopii nopeaan korttipelien prototyyppiin.
count
valinnainen
oletus: 5
Number of cards to draw
| Nimi | Pakollinen | Oletus | Kuvaus |
|---|---|---|---|
count |
Ei | 5 | Number of cards to draw |
curl "https://nordapi.ee/api/v1/cards/quickdraw?count=5"
{
"data": {
"cards": [
{
"code": "3D",
"image": "https://deckofcardsapi.com/static/img/3D.png",
"suit": "DIAMONDS",
"value": "3"
},
{
"code": "7C",
"image": "https://deckofcardsapi.com/static/img/7C.png",
"suit": "CLUBS",
"value": "7"
},
{
"code": "0S",
"image": "https://deckofcardsapi.com/static/img/0S.png",
"suit": "SPADES",
"value": "10"
},
{
"code": "7D",
"image": "https://deckofcardsapi.com/static/img/7D.png",
"suit": "DIAMONDS",
"value": "7"
},
{
"code": "3H",
"image": "https://deckofcardsapi.com/static/img/3H.png",
"suit": "HEARTS",
"value": "3"
}
],
"deck_id": "wibwhw3eip4n",
"remaining": 47
},
"success": true
}