This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Tournament Poster
Marc Orfila Carreras edited this page Aug 6, 2023
·
1 revision
Returns the poster of a tournament.
GET /v1/competitions/<competition_id>/tournaments/<tournament_id>/image
import requests
url = "http://127.0.0.1/v1/competitions/1/tournaments/33/image"
response = requests.get(url)
with open("downloaded_image.png", "wb") as f:
f.write(response.content)
Name | Type | Description |
---|---|---|
status |
string | The status of the API response. Supported values: success or fail . This field indicates whether the API request was successful or encountered an error. This field is populated only when an image was not sent with the request. |
data |
array | An array containing the data returned by the API. This field encapsulates the main payload of the response. This field is populated only when an image was not sent with the request. |
message |
string | A descriptive message providing information about any encountered errors. This field is populated only when the API response status is fail and an image was not sent with the request, and it helps identify the specific issue that occurred during the request processing. |
Code 200
Code 206
{
"data": {
"message": "Image not found"
},
"status": "fail"
}
-
Competitions
-
Players
-
Tournaments