OwGamesService
A list of all methods in the OwGamesService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_ow_games_ow_game_id | Get a single Overwatch game by ID |
get_ow_matches_match_id_or_slug_games | List games for a given Overwatch match |
get_ow_games_ow_game_id
Get a single Overwatch game by ID
- HTTP Method:
GET
- Endpoint:
/ow/games/{ow_game_id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
ow_game_id | int | ✅ | An Overwatch game ID |
Return Type
OwGame
Example Usage Code Snippet
from pandascore_client import PandascoreClient, Environment
sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
result = sdk.ow_games.get_ow_games_ow_game_id(ow_game_id=3)
print(result)
get_ow_matches_match_id_or_slug_games
List games for a given Overwatch match
- HTTP Method:
GET
- Endpoint:
/ow/matches/{match_id_or_slug}/games
Parameters
Name | Type | Required | Description |
---|---|---|---|
match_id_or_slug | MatchIdOrSlug | ✅ | A match ID or slug |
filter | FilterOverOwGames | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverOwGames | ❌ | Options to select results within ranges For more information on ranges, see docs. |
sort | List[any] | ❌ | Options to sort results For more information on sorting, see docs. |
search | SearchOverOwGames | ❌ | Options to search results For more information on searching, see docs. |
page | Page | ❌ | Pagination in the form of page=2 or page[size]=30&page[number]=2 |
per_page | int | ❌ | Equivalent to page[size] |
Return Type
List[OwGame]
Example Usage Code Snippet
from pandascore_client import PandascoreClient, Environment
from pandascore_client.models import FilterOverOwGames, RangeOverOwGames, SearchOverOwGames
sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
match_id_or_slug=5
filter=FilterOverOwGames(
begin_at=[
"e"
],
complete=True,
detailed_stats=False,
end_at=[
"si"
],
finished=True,
forfeit=True,
id_=[
6
],
length=[
4
],
match_id=[
10
],
position=[
8
],
status=[
"finished"
],
winner_type=[
"Player"
]
)
range=RangeOverOwGames(
begin_at=[
"cupidat"
],
complete=[
True
],
detailed_stats=[
False
],
end_at=[
"conse"
],
finished=[
True
],
forfeit=[
False
],
id_=[
9
],
length=[
2
],
match_id=[
2
],
position=[
6
],
status=[
"finished"
],
winner_type=[
"Player"
]
)
sort=[
""
]
search=SearchOverOwGames(
status="finished",
winner_type="Player"
)
page=1
result = sdk.ow_games.get_ow_matches_match_id_or_slug_games(
match_id_or_slug=match_id_or_slug,
filter=filter,
range=range,
sort=sort,
search=search,
page=page,
per_page=50
)
print(result)
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs