The central object is the Client object, instantiated with an API key. This object represents a connection to the Square Cloud service and acts as an interface to interact with various aspects of the service.
api_key: str
: This is the required parameter when instantiating the Client object.
A valid API key must be provided as a string for authentication to be performed correctly.
debug: bool = True
: This is an optional parameter that controls the debug mode of
the Client object. When set to True, every time a request is made, the Client object prints
debug information to facilitate the detection and resolution of
issues. However, in production environments, it is common to set this parameter
to False to avoid displaying unnecessary information.
This value defaults to True.