probe-gate
Demonstrates reshuffling only the remaining (undrawn) cards in a partially used deck
curl 'https://deckofcardsapi.com/api/deck/wa025949x0ez/shuffle/?remaining=true'
import requests
resp = requests.get(
"https://deckofcardsapi.com/api/deck/wa025949x0ez/shuffle/",
params={
'remaining': 'true',
},
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("deckofcardsapi")
result = api.fetch("deck/{deck_id}/shuffle/", remaining="true")
for item in result:
print(item)
const resp = await fetch("https://deckofcardsapi.com/api/deck/wa025949x0ez/shuffle/?remaining=true");
const data = await resp.json();