Hi there,
since I'm not happy with how few puzzle statistics you get, I wanted to make my own.
I tried it with python for...8hours and gave up.
Now I have my webserver set up, and I manage to get my authorization code and my token.
Next step would be, to somehow get the puzzle-activity with a request to this URL: lichess.org//api/user/{username}/puzzle-activity
(I changed {username} to Asrar).
This is where my understanding completely stops.
I'm using php and CURL to send / receive data, but I have no idea what kind of header I have to send, to not get a "Missing authorization header" error.
I can't find that info in the api documentation either.
I also only get "404 - Resource not found"
I would greatly appreciate some help here.
Thanks in advance,
Asrar
since I'm not happy with how few puzzle statistics you get, I wanted to make my own.
I tried it with python for...8hours and gave up.
Now I have my webserver set up, and I manage to get my authorization code and my token.
Next step would be, to somehow get the puzzle-activity with a request to this URL: lichess.org//api/user/{username}/puzzle-activity
(I changed {username} to Asrar).
This is where my understanding completely stops.
I'm using php and CURL to send / receive data, but I have no idea what kind of header I have to send, to not get a "Missing authorization header" error.
I can't find that info in the api documentation either.
I also only get "404 - Resource not found"
I would greatly appreciate some help here.
Thanks in advance,
Asrar