← Mängimine

Kiirtõmbamine

GET /cards/quickdraw

Looge a new deck and immediately draw cards in one request. Sobib quick card game prototyping.

Parameetrid

count valikuline vaikeväärtus: 5

Number of cards to draw

Näidispäringud

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

Reaalajas vastus

{
  "data": {
    "cards": [
      {
        "code": "JC",
        "image": "https://deckofcardsapi.com/static/img/JC.png",
        "suit": "CLUBS",
        "value": "JACK"
      },
      {
        "code": "8H",
        "image": "https://deckofcardsapi.com/static/img/8H.png",
        "suit": "HEARTS",
        "value": "8"
      },
      {
        "code": "KC",
        "image": "https://deckofcardsapi.com/static/img/KC.png",
        "suit": "CLUBS",
        "value": "KING"
      },
      {
        "code": "AS",
        "image": "https://deckofcardsapi.com/static/img/AS.png",
        "suit": "SPADES",
        "value": "ACE"
      },
      {
        "code": "QC",
        "image": "https://deckofcardsapi.com/static/img/QC.png",
        "suit": "CLUBS",
        "value": "QUEEN"
      }
    ],
    "deck_id": "9yvcjgqpyrky",
    "remaining": 47
  },
  "success": true
}