A Magic the Gathering API