Skip to content

Instantly share code, notes, and snippets.

<?php
/*** MTGO Library API Example ***/
// build the url to the api
$url = 'https://www.mtgolibrary.com/web_shops/inventory?' . http_build_query(array(
'bot' => 'YOUR_BOT_NAME_HERE', // your username
'key' => 'YOUR_API_KEY_HERE', // your api key
'set_name' => 'BNG', // the set name to download
));