6. pybt.client

class pybt.client.Client(panel_address, api_key)

The basic client class

__get_key()

Get the key for the request

__init__(panel_address, api_key)

Initialize the client

Parameters
  • panel_address (str) – The panel address.

  • api_key (str) – The API key.

post_data(endpoint, data={})

Post data to the panel

Parameters
  • endpoint (str) – The request endpoint.

  • data (dict) – The post body data.

Raises

ConnectionRefused, InvalidAPIKey, IPBlocked, BadRequest