Блог пользователя Herio

Автор Herio, история, 5 лет назад, По-английски

I read the API document of codeforces and found that the interface for obtaining all contests is contest.list, but this method has only one parameter gym (bool) and can only return all contests. I just want to get information faster and only return upcoming contests instead of classifying after returning all contests. Can someone help me? please.

  • Проголосовать: нравится
  • +19
  • Проголосовать: не нравится

»
5 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by Herio (previous revision, new revision, compare).

»
5 лет назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Send request to /api/contest.standings? with contestId the id of contest, if the contest hasn't started you get error comment: contestId: Contest with id ... has not started.

»
3 года назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

send a request to https://mirror.codeforces.com/api/contest.list? and get the list of those whose 'phase' key value is 'BEFORE'