Skip to content

Commit

Permalink
APC
Browse files Browse the repository at this point in the history
  • Loading branch information
lperovskaya committed Mar 3, 2024
1 parent 40692ad commit 67bb52e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/icpc-asia-pacific/advanced.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
11 changes: 11 additions & 0 deletions config/icpc-asia-pacific/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"type":"clics",
"feeds": [
{
"login":"login",
"password":"password",
"url":"https://icpc2024-pacific-maingate.gusmachine.com/api",
"contestId": "3"
}
]
}
19 changes: 19 additions & 0 deletions config/icpc-asia-pacific/token.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 67bb52e

Please sign in to comment.