I am not 100% sure, but I tested with a handful of different cards and it seems that market_place.products only does not give an error, when the name does not contain a space (or a comma).
Cards like Endbringer, Dispel work flawlessly with market_place.products, but "Lightning Bolt", "Endless One" and "Jace, the Mind Sculptor" do not. Requests does automatically escape URLs, so that it will fetch the url with escapes spaces, but the MKMOAuth1-class does have an incorret realm-field then. One fix would be to pass an already escaped url. This will work:
mkm.market_place.products(name = "Lightning%20Bolt", game = 1, language = 3, match = False)
Also Requests (for some reason) does not escape comma (and maybe more), so that
mkm.market_place.products(name = "Jace, the Mind Sculptor", game = 1, language = 3, match = False)
It seems as though mkm-sdk would have to url encode some fields itself. If this is intended, then mkm-sdk should at least document this, because finding all this out took me quite and I don't seem many reasons to not auto-escape the fields itself.
I am not 100% sure, but I tested with a handful of different cards and it seems that market_place.products only does not give an error, when the name does not contain a space (or a comma).
Cards like Endbringer, Dispel work flawlessly with market_place.products, but "Lightning Bolt", "Endless One" and "Jace, the Mind Sculptor" do not. Requests does automatically escape URLs, so that it will fetch the url with escapes spaces, but the MKMOAuth1-class does have an incorret realm-field then. One fix would be to pass an already escaped url. This will work:
Also Requests (for some reason) does not escape comma (and maybe more), so that
fetches:
while it should fetch:
It seems as though mkm-sdk would have to url encode some fields itself. If this is intended, then mkm-sdk should at least document this, because finding all this out took me quite and I don't seem many reasons to not auto-escape the fields itself.