All URIs are relative to https://api.rawg.io/api
Method | HTTP request | Description |
---|---|---|
creators_list | GET /creators | Get a list of game creators. |
creators_read | GET /creators/{id} | Get details of the creator. |
CreatorsList200Response creators_list(page=page, page_size=page_size)
Get a list of game creators.
from __future__ import print_function
import time
import rawg
from rawg.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.rawg.io/api
# See configuration.py for a list of all supported configuration parameters.
configuration = rawg.Configuration(
host = "https://api.rawg.io/api"
)
# Enter a context with an instance of the API client
with rawg.ApiClient() as api_client:
# Create an instance of the API class
api_instance = rawg.CreatorsApi(api_client)
page = 56 # int | A page number within the paginated result set. (optional)
page_size = 56 # int | Number of results to return per page. (optional)
try:
# Get a list of game creators.
api_response = api_instance.creators_list(page=page, page_size=page_size)
pprint(api_response)
except ApiException as e:
print("Exception when calling CreatorsApi->creators_list: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
page | int | A page number within the paginated result set. | [optional] |
page_size | int | Number of results to return per page. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PersonSingle creators_read(id)
Get details of the creator.
from __future__ import print_function
import time
import rawg
from rawg.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.rawg.io/api
# See configuration.py for a list of all supported configuration parameters.
configuration = rawg.Configuration(
host = "https://api.rawg.io/api"
)
# Enter a context with an instance of the API client
with rawg.ApiClient() as api_client:
# Create an instance of the API class
api_instance = rawg.CreatorsApi(api_client)
id = 'id_example' # str |
try:
# Get details of the creator.
api_response = api_instance.creators_read(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CreatorsApi->creators_read: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]