API Testing
Consider using a lila-gitpod workspace while you develop your API integration before pointing to the production Lichess.org.
- Avoid getting rate-limited
- Don't worry about messing anything up
- If developing a bot, keep test games out of your bot's game history
Setup
- Create your workspace
- Make port 8080 public, so you can access it from the client.
Bot Development
- Create an account for your bot
-
Point your bot to use your workspace's development site instead of
lichess.org
Using lichess-bot
If you're using the lichess-bot project, set the
url
value inconfig.yml
to your development site.
Client Development
If you're using the Lichess berserk Python client, you can point it to your workspace's development site instead of lichess.org
.
import berserk
client = berserk.Client(base_url="https://your-gitpod-instance.gitpod.io")
profile = client.users.get_by_id('bobby')
print(profile)