Open Flope opened 4 years ago
The API currently doesn't support log-ins. I've got a solution for this, though I have a few testing related questions for @lcosmin (or any other responsible devs):
add_collection_items_from_xml
(in loaders/collection.py), as that function must be updated to support private info. Is there a preference for putting it in a new test file or an existing file?
I think I see the answer for 1.i.: the xml files are loaded by simulate_bgg
and simulate_legacy_bgg
(in test/_common.py), which simulate BGG.com's response to a request by setting one as a mocked side effect for "requests.sessions.Session.get". To determine which file to load, the simulator functions first sort the parameters by key and join them as a query string. Thus, to create & use a sample XML file, the file must include all parameters used in the query in order of the keys.
Hi, I was wondering if it is possible to access the private information of the collections. I understand that we need to be login but I am not sure how to do it from your API.
Thanks