Skip to content

Latest commit

 

History

History
132 lines (94 loc) · 3.75 KB

CreatorsApi.md

File metadata and controls

132 lines (94 loc) · 3.75 KB

rawg.CreatorsApi

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.

creators_list

CreatorsList200Response creators_list(page=page, page_size=page_size)

Get a list of game creators.

Example

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)

Parameters

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]

Return type

CreatorsList200Response

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 -

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

creators_read

PersonSingle creators_read(id)

Get details of the creator.

Example

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)

Parameters

Name Type Description Notes
id str

Return type

PersonSingle

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 -

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