diff --git a/config/icpc-asia-pacific/advanced.json b/config/icpc-asia-pacific/advanced.json new file mode 100644 index 000000000..7a73a41bf --- /dev/null +++ b/config/icpc-asia-pacific/advanced.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/config/icpc-asia-pacific/settings.json b/config/icpc-asia-pacific/settings.json new file mode 100644 index 000000000..4edc5bf91 --- /dev/null +++ b/config/icpc-asia-pacific/settings.json @@ -0,0 +1,11 @@ +{ + "type":"clics", + "feeds": [ + { + "login":"login", + "password":"password", + "url":"https://icpc2024-pacific-maingate.gusmachine.com/api", + "contestId": "3" + } + ] +} \ No newline at end of file diff --git a/config/icpc-asia-pacific/token.py b/config/icpc-asia-pacific/token.py new file mode 100644 index 000000000..c0e3fe1dd --- /dev/null +++ b/config/icpc-asia-pacific/token.py @@ -0,0 +1,19 @@ +import requests +import json + +def api_req(): + url = "http://210.245.6.70:8001/auth/login" + body = { + "username": "login", + "password": "password" + } + headers = {'Content-type': 'application/json'} + + result = requests.post(url, data = body) + + print(result.status_code) + rr = result.json() + print("accessToken: ") + print(rr['accessToken']) + +api_req()