Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.99 KB

PublicMatchesApi.md

File metadata and controls

61 lines (42 loc) · 1.99 KB

od_python.PublicMatchesApi

All URIs are relative to https://api.opendota.com/api

Method HTTP request Description
public_matches_get GET /publicMatches GET /publicMatches

public_matches_get

list[InlineResponse20015] public_matches_get(mmr_ascending=mmr_ascending, mmr_descending=mmr_descending, less_than_match_id=less_than_match_id)

GET /publicMatches

Get list of randomly sampled public matches

Example

from __future__ import print_function
import time
import od_python
from od_python.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = od_python.PublicMatchesApi()
mmr_ascending = 56 # int | Order by MMR ascending (optional)
mmr_descending = 56 # int | Order by MMR descending (optional)
less_than_match_id = 56 # int | Get matches with a match ID lower than this value (optional)

try: 
    # GET /publicMatches
    api_response = api_instance.public_matches_get(mmr_ascending=mmr_ascending, mmr_descending=mmr_descending, less_than_match_id=less_than_match_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicMatchesApi->public_matches_get: %s\n" % e)

Parameters

Name Type Description Notes
mmr_ascending int Order by MMR ascending [optional]
mmr_descending int Order by MMR descending [optional]
less_than_match_id int Get matches with a match ID lower than this value [optional]

Return type

list[InlineResponse20015]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]