probe-gate
Demonstrates drawing a specific number of cards from a named pile rather than the main deck
curl 'https://deckofcardsapi.com/api/deck/wa025949x0ez/pile/player1/draw/?count=1'
import requests
resp = requests.get(
"https://deckofcardsapi.com/api/deck/wa025949x0ez/pile/player1/draw/",
params={
'count': '1',
},
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("deckofcardsapi")
result = api.fetch("deck/{deck_id}/pile/{pile_name}/draw/", count=1)
for item in result:
print(item)
const resp = await fetch("https://deckofcardsapi.com/api/deck/wa025949x0ez/pile/player1/draw/?count=1");
const data = await resp.json();