magic-api icon indicating copy to clipboard operation
magic-api copied to clipboard

Include the multiverse ID

Open thecodedrift opened this issue 11 years ago • 3 comments

Having the multiverse ID available in the API would be a huge help. This would allow a developer to link to the gatherer page, look up card images from mtgimage, etc.

thecodedrift avatar Sep 05 '14 03:09 thecodedrift

You're right, and I'll investigate and try to implement in the next round of changes :) Thanks for your interest!

SteGriff avatar Sep 05 '14 08:09 SteGriff

Any update on this? That's pretty much the only thing I'm missing atm from the api.

TheOddler avatar Jun 14 '15 15:06 TheOddler

Note to self

The file_get_contents result is a redirection from a named search to a page with a multiverse ID. We can do the first fgc with follow_location set to false to get the MVID in the URL and then retreive the actual page. See: http://stackoverflow.com/a/12566320

Option 2 is to search the page for "multiverseid=x" but that has to be BEFORE strip_tags is called

SteGriff avatar Jan 27 '16 14:01 SteGriff