probe-gate
Demonstrates drawing multiple cards from a deck using the count parameter
curl 'https://deckofcardsapi.com/api/deck/wa025949x0ez/draw/?count=2'
import requests
resp = requests.get(
"https://deckofcardsapi.com/api/deck/wa025949x0ez/draw/",
params={
'count': '2',
},
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("deckofcardsapi")
result = api.fetch("deck/{deck_id}/draw/", count=2)
for item in result:
print(item)
const resp = await fetch("https://deckofcardsapi.com/api/deck/wa025949x0ez/draw/?count=2");
const data = await resp.json();