Categorygithub.com/gky360/atsrv
modulepackage
0.3.0
Repository: https://github.com/gky360/atsrv.git
Documentation: pkg.go.dev

# README

atsrv

Build Status Build status GoDoc

        __
       /\ \__
   __  \ \ ,_\   ____  _ __   __  __
 /'__'\ \ \ \/  /',__\/\''__\/\ \/\ \
/\ \L\.\_\ \ \_/\__, '\ \ \/ \ \ \_/ |
\ \__/.\_\\ \__\/\____/\ \_\  \ \___/
 \/__/\/_/ \/__/\/___/  \/_/   \/__/

Backend for atcli ( https://github.com/gky360/atcli )

Requirements

Installation

go get -u github.com/gky360/atsrv

Usage

  1. Generate auth token (like cat /dev/urandom | base64 | fold -w 32 | head -n 1 ) and set it to environment variable ATSRV_AUTH_TOKEN.
  2. Set user id of AtCoder to environment variable ATSRV_USER_ID.
  3. Run atsrv .
  4. Enter your password to login to AtCoder.
  5. atsrv will start running.

Endpoints

methodneed tokenexapmle path
GETn/
GETy/me
GETy/contests/arc090
GETy/contests/arc090?with_testcases_url=true
POSTy/contests/arc090/join
GETy/contests/arc090/tasks
GETy/contests/arc090/tasks?full=true
GETy/contests/arc090/tasks/d
GETy/contests/arc090/submissions
GETy/contests/arc090/submissions?task_name=d&status=AC
GETy/contests/arc090/submissions/2167890
POSTy/contests/arc090/submissions?task_name=d

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author