This project implements all Codeforces API methods described here. If there are any errors in the implementation of some methods, contact me, and I'll fix them.
Use mvn package
if you need a .jar
file.
The main class is CodeforcesSession
. It implements all API methods. Constructor takes two parameters – key
and secret
. You can get them in your profile settings on CodeForces.
All entity classes, for example, Party
, BlogEntry
, etc., are in the ru.perveevm.codeforces.api.entities
package.
To add it into your pom.xml use:
<dependency>
<groupId>ru.perveevm</groupId>
<artifactId>codeforces-api</artifactId>
<version>Put the version you want here</version>
</dependency>