← Pelaaminen

Pikanosto

GET /cards/quickdraw

Luo uusi korttipakka ja nosta kortit välittömästi yhdellä pyynnöllä. Sopii nopeaan korttipelien prototyyppiin.

Parametrit

count valinnainen oletus: 5

Number of cards to draw

Esimerkkipyynnöt

Peruskäyttö
curl "https://nordapi.ee/api/v1/cards/quickdraw?count=5"

Reaaliaikainen vastaus

{
  "data": {
    "cards": [
      {
        "code": "5H",
        "image": "https://deckofcardsapi.com/static/img/5H.png",
        "suit": "HEARTS",
        "value": "5"
      },
      {
        "code": "3C",
        "image": "https://deckofcardsapi.com/static/img/3C.png",
        "suit": "CLUBS",
        "value": "3"
      },
      {
        "code": "0S",
        "image": "https://deckofcardsapi.com/static/img/0S.png",
        "suit": "SPADES",
        "value": "10"
      },
      {
        "code": "QH",
        "image": "https://deckofcardsapi.com/static/img/QH.png",
        "suit": "HEARTS",
        "value": "QUEEN"
      },
      {
        "code": "7D",
        "image": "https://deckofcardsapi.com/static/img/7D.png",
        "suit": "DIAMONDS",
        "value": "7"
      }
    ],
    "deck_id": "rljxk7onrykt",
    "remaining": 47
  },
  "success": true
}