Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Latest commit

 

History

History
65 lines (45 loc) · 2.83 KB

ContestProblemsApi.md

File metadata and controls

65 lines (45 loc) · 2.83 KB

codechef_client.ContestProblemsApi

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

Method HTTP request Description
contests_contest_code_problems_problem_code_get GET /contests/{contestCode}/problems/{problemCode} Get details of a problem.

contests_contest_code_problems_problem_code_get

InlineResponse2004 contests_contest_code_problems_problem_code_get(problem_code, contest_code, fields=fields)

Get details of a problem.

Takes problemCode as the parameter and fetches details of that problem.

Example

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

# Configure OAuth2 access token for authorization: codechef_auth
configuration = codechef_client.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = codechef_client.ContestProblemsApi(codechef_client.ApiClient(configuration))
problem_code = 'problem_code_example' # str | Problem code of the problem, eg. SALARY
contest_code = 'contest_code_example' # str | Contest code of the contest, eg. PRACTICE, COOK97, JAN17
fields = 'fields_example' # str | Possible fields are- problemCode, author, problemName, languagesSupported, sourceSizeLimit,  dateAdded, challengeType, maxTimeLimit, successfulSubmissions, body, totalSubmissions, partialSubmissions, tags.  Multiple fields can be entered using comma. (optional)

try:
    # Get details of a problem.
    api_response = api_instance.contests_contest_code_problems_problem_code_get(problem_code, contest_code, fields=fields)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContestProblemsApi->contests_contest_code_problems_problem_code_get: %s\n" % e)

Parameters

Name Type Description Notes
problem_code str Problem code of the problem, eg. SALARY
contest_code str Contest code of the contest, eg. PRACTICE, COOK97, JAN17
fields str Possible fields are- problemCode, author, problemName, languagesSupported, sourceSizeLimit, dateAdded, challengeType, maxTimeLimit, successfulSubmissions, body, totalSubmissions, partialSubmissions, tags. Multiple fields can be entered using comma. [optional]

Return type

InlineResponse2004

Authorization

codechef_auth

HTTP request headers

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

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