Website API change due to Shards
-
So, I wrote a python script some time ago to pull some information, but now it stopped working. When requesting https://screeps.com/api/user/memory (with the right headers), I get {'error': 'invalid shard'} as a response. What do I need to change?
-
Add
?shard=shard0
to your request
-
You can also just use the screepers python client library. We do a fairly decent job of keeping it up to date with all the changes the devs make, as it's used to drive a lot of the third party projects.