Skip to main content
Version: 0.6

BaseClient

Base class for sub-clients.

Hierarchy

Index

Methods

Methods

__init__

  • __init__(*, base_url, root_client, http_client, resource_id, resource_path, params): None
  • Initialize the sub-client.


    Parameters

    • keyword-onlybase_url: str

      Base URL of the API server

    • keyword-onlyroot_client: ApifyClient

      The ApifyClient instance under which this resource client exists

    • keyword-onlyhttp_client: _HTTPClient

      The _HTTPClient instance to be used in this client

    • optionalkeyword-onlyresource_id: Optional[str] = None

      ID of the manipulated resource, in case of a single-resource client

    • keyword-onlyresource_path: str

      Path to the resource's endpoint on the API server

    • optionalkeyword-onlyparams: Optional[Dict] = None

      Parameters to include in all requests from this client

    Returns None

Page Options