Dialpad¶
flowtask.components.DialPad
¶
DialPad
¶
Bases: FlowComponent, HTTPService
DialPad
Overview
The DialPad class is a component for interacting with the DialPad API. It extends the FlowComponent and HTTPService
classes, providing methods for authentication, fetching statistics, and handling API responses.
.. table:: Properties :widths: auto
+------------------+----------+--------------------------------------------------------------------------------------------------+
| Name | Required | Description |
+------------------+----------+--------------------------------------------------------------------------------------------------+
| accept | No | The accepted content type for API responses, defaults to "application/json". |
+------------------+----------+--------------------------------------------------------------------------------------------------+
| download | No | The download flag indicating if a file download is required. |
+------------------+----------+--------------------------------------------------------------------------------------------------+
| _credentials | Yes | A dictionary containing the API key for authentication. |
+------------------+----------+--------------------------------------------------------------------------------------------------+
| _base_url | Yes | The base URL for the DialPad API. |
+------------------+----------+--------------------------------------------------------------------------------------------------+
| auth | Yes | The authentication header for API requests. |
+------------------+----------+--------------------------------------------------------------------------------------------------+
Return
The methods in this class manage the interaction with the DialPad API, including initialization, fetching statistics,
processing results, and handling credentials.