← 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": "5H",
        "image": "https://deckofcardsapi.com/static/img/5H.png",
        "suit": "HEARTS",
        "value": "5"
      },
      {
        "code": "4S",
        "image": "https://deckofcardsapi.com/static/img/4S.png",
        "suit": "SPADES",
        "value": "4"
      },
      {
        "code": "7H",
        "image": "https://deckofcardsapi.com/static/img/7H.png",
        "suit": "HEARTS",
        "value": "7"
      },
      {
        "code": "2S",
        "image": "https://deckofcardsapi.com/static/img/2S.png",
        "suit": "SPADES",
        "value": "2"
      },
      {
        "code": "AS",
        "image": "https://deckofcardsapi.com/static/img/AS.png",
        "suit": "SPADES",
        "value": "ACE"
      }
    ],
    "deck_id": "tl1ihbs9er4h",
    "remaining": 47
  },
  "success": true
}