Skip to content

Latest commit

 

History

History
106 lines (72 loc) · 2.58 KB

File metadata and controls

106 lines (72 loc) · 2.58 KB

od_python.RequestApi

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

Method HTTP request Description
request_job_id_get GET /request/{jobId} GET /request/{jobId}
request_match_id_post POST /request/{match_id} POST /request/{match_id}

request_job_id_get

object request_job_id_get(job_id)

GET /request/{jobId}

Get parse request state

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.RequestApi()
job_id = 'job_id_example' # str | The job ID to query.

try: 
    # GET /request/{jobId}
    api_response = api_instance.request_job_id_get(job_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RequestApi->request_job_id_get: %s\n" % e)

Parameters

Name Type Description Notes
job_id str The job ID to query.

Return type

object

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]

request_match_id_post

object request_match_id_post(match_id)

POST /request/{match_id}

Submit a new parse request

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.RequestApi()
match_id = 56 # int | 

try: 
    # POST /request/{match_id}
    api_response = api_instance.request_match_id_post(match_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RequestApi->request_match_id_post: %s\n" % e)

Parameters

Name Type Description Notes
match_id int

Return type

object

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]