Skip to content

Commit

Permalink
Update Hatching Triage API url
Browse files Browse the repository at this point in the history
  • Loading branch information
battleoverflow committed Dec 20, 2023
1 parent fb95529 commit 05ae366
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions sandboxapi/triage.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,21 @@

class TriageAPI(sandboxapi.SandboxAPI):

def __init__(self, api_key, url=None, api_path=None, verify_ssl=True,
**kwargs):
def __init__(self, api_key, url=None, verify_ssl=True, **kwargs):
"""
:type api_key: str
:param api_key: The API key which can be found on the /account page
on the Triage web interface
:type url str
:param url The url (including the port) of the Triage instance
defaults to https://api.tria.ge
:type api_path str
:param api_path The path to the API on the Triage instance
defaults to /v0
defaults to https://tria.ge/api/v0
"""
sandboxapi.SandboxAPI.__init__(self, **kwargs)

self.api_key = api_key
self.base_url = url or "https://api.tria.ge"

self.api_url = self.base_url + (api_path or "/v0")
self.base_url = url or "https://tria.ge/api/v0"
self.api_url = self.base_url

self.headers = {'Authorization': 'Bearer {:s}'.format(api_key)}

Expand Down

0 comments on commit 05ae366

Please sign in to comment.