Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

from https://github.com/aiarena/aiarena-client/pull/13 #26

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Next Next commit
feat: Added status report endpoint to AiArenaWebApi
  • Loading branch information
eladyaniv01 committed Dec 6, 2020
commit b043ddc65e32643250ca27a459db75c29abd24dd
2 changes: 2 additions & 0 deletions arenaclient/match/aiarena_web_api.py
Original file line number Diff line number Diff line change
@@ -12,13 +12,15 @@ class AiArenaWebApi:
"""
API_MATCHES_ENDPOINT = "/api/arenaclient/matches/"
API_RESULTS_ENDPOINT = "/api/arenaclient/results/"
API_SET_STATUS_ENDPOINT = "/api/arenaclient/set-status/"

def __init__(self, api_url, api_token, global_config):
self.API_URL = api_url
self.API_TOKEN = api_token

self.API_MATCHES_URL = parse.urljoin(self.API_URL, AiArenaWebApi.API_MATCHES_ENDPOINT)
self.API_RESULTS_URL = parse.urljoin(self.API_URL, AiArenaWebApi.API_RESULTS_ENDPOINT)
self.API_SET_STATUS_URL = parse.urljoin(self.API_URL, AiArenaWebApi.API_SET_STATUS_ENDPOINT)

self._utl = Utl(global_config)