← Spel

Snabbdragning

GET /cards/quickdraw

Skapa en ny kortlek och dra kort direkt i samma begäran. Perfekt för snabb prototypframtagning av kortspel.

Parametrar

count valfri standard: 5

Number of cards to draw

Exempelförfrågningar

Grundläggande användning
curl "https://nordapi.ee/api/v1/cards/quickdraw?count=5"

Livesvar

{
  "data": {
    "cards": [
      {
        "code": "4H",
        "image": "https://deckofcardsapi.com/static/img/4H.png",
        "suit": "HEARTS",
        "value": "4"
      },
      {
        "code": "JS",
        "image": "https://deckofcardsapi.com/static/img/JS.png",
        "suit": "SPADES",
        "value": "JACK"
      },
      {
        "code": "8S",
        "image": "https://deckofcardsapi.com/static/img/8S.png",
        "suit": "SPADES",
        "value": "8"
      },
      {
        "code": "3D",
        "image": "https://deckofcardsapi.com/static/img/3D.png",
        "suit": "DIAMONDS",
        "value": "3"
      },
      {
        "code": "9D",
        "image": "https://deckofcardsapi.com/static/img/9D.png",
        "suit": "DIAMONDS",
        "value": "9"
      }
    ],
    "deck_id": "ip59jq1phizy",
    "remaining": 47
  },
  "success": true
}