-
-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API for Studies #157
Comments
A full REST API for studies would be nice. My desired use is
|
I have the same requirement. I would like to have an API where I can upload multiple games, positions, studies, and puzzles to Lichess. And most importantly, a way to classify and organize all the uploads into one study, chapter-wise in a logical manner via API, instead of doing it manually, which is so tedious and time-consuming. for example, the below code uploads a PGN to Lichess, but it only returns a single link to the upload. # pgn_text = imported pgn file
headers = {
"Content-Type": "application/x-www-form-urlencoded",
"Authorization": "Bearer " + YOUR_API_KEY
}
body = {
"pgn": pgn_text
}
response = requests.post(LICHESS_API_URL, headers=headers, data=body) If only there was a way to collect all these links and pass it through another API to get them organized into a Study, chapter-wise, or do a bulk upload of all the PGNs together and pass in a JSON that would structure the uploads and organize them into a study. |
Hi all, Have you had a solution to this issue? Right now Lichess has an import PGN api into an existing study: https://lichess.org/api#tag/Studies/operation/apiStudyImportPGN I would like to be able to create a new study at least. Is this possible? |
Hi all, thanks for the work you have been doing. Thanks |
long ago, I recall creating a detailed issue on the same, with some ideas on what the API could be like. If I get some time in the future, I will try to implement the same and raise a PR. |
I would like an API that,
I've built a system that pulls all games for a particular player (OTB games) from tournament sites and consolidates them into a single PGN. I then want a way of creating a study, uploading the PGN, and auto run the engine against each game (chapter), returning a link to that study.
Thank you!
The text was updated successfully, but these errors were encountered: