All URIs are relative to https://api.codechef.com
Method | HTTP request | Description |
---|---|---|
country_get | GET /country | Get the list of countries on codechef. |
InlineResponse2005 country_get(search=search, offset=offset, limit=limit)
Get the list of countries on codechef.
Returns a list of countries.
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.CountriesApi(codechef_client.ApiClient(configuration))
search = 'search_example' # str | Search string for country by prefix, eg. search by 'jap' will return Japan. (optional)
offset = 56 # int | Starting index of the list, eg. 3 (optional)
limit = 56 # int | Number of countries in a list, max 100 (optional)
try:
# Get the list of countries on codechef.
api_response = api_instance.country_get(search=search, offset=offset, limit=limit)
pprint(api_response)
except ApiException as e:
print("Exception when calling CountriesApi->country_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
search | str | Search string for country by prefix, eg. search by 'jap' will return Japan. | [optional] |
offset | int | Starting index of the list, eg. 3 | [optional] |
limit | int | Number of countries in a list, max 100 | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]