Skip to content

Privacy

José de Freitas edited this page Feb 5, 2024 · 9 revisions

Why not use the API

The driver is a program that navigates to the Codewars website and fills the required fields with your data to be able to get all the katas. However, you probably wondered: “Why don't just use the API to access the katas I've completed without the necessity of using a driver?” Well, that's because, at the moment, Codewars doesn't provide an access token (although they include one in the configuration page of your account) to access the API. This is why such an “obnoxious” process must be made to access the website content. The version of the Codewars API is 1. If they launch a new version with this implementation, another method could be used, reducing the code and being able to make a full refactor of the program.

Your credentials

As you may already know, the solutions of the challenges can only be seen by the person who has already completed the challenges, in order to force them to complete the kata and to not copy the code of others. Because of this, you need to # to your Codewars account to be able to read the katas. The driver does this automatically, but of course it needs your credentials. These are not stored anywhere, the program just reads them at the start of the execution (every time you run the program).

Clone this wiki locally