← Tölvuleikir

Fljótlegur dráttur

GET /cards/quickdraw

Búðu til a new deck and immediately draw cards in one request. Fullkomið til að prófa spilaleiki hratt.

Breytur

count valfrjálst sjálfgefið: 5

Number of cards to draw

Dæmi um fyrirspurnir

Grunnnotkun
curl "https://nordapi.ee/api/v1/cards/quickdraw?count=5"

Lifandi svar

{
  "data": {
    "cards": [
      {
        "code": "3C",
        "image": "https://deckofcardsapi.com/static/img/3C.png",
        "suit": "CLUBS",
        "value": "3"
      },
      {
        "code": "JC",
        "image": "https://deckofcardsapi.com/static/img/JC.png",
        "suit": "CLUBS",
        "value": "JACK"
      },
      {
        "code": "AC",
        "image": "https://deckofcardsapi.com/static/img/AC.png",
        "suit": "CLUBS",
        "value": "ACE"
      },
      {
        "code": "2C",
        "image": "https://deckofcardsapi.com/static/img/2C.png",
        "suit": "CLUBS",
        "value": "2"
      },
      {
        "code": "0D",
        "image": "https://deckofcardsapi.com/static/img/0D.png",
        "suit": "DIAMONDS",
        "value": "10"
      }
    ],
    "deck_id": "o70msdzcrjiw",
    "remaining": 47
  },
  "success": true
}