abacusai.slack_connector_response

Module Contents

Classes

SlackConnectorResponse

The response to a slack command formatted to be readable by Slack

class abacusai.slack_connector_response.SlackConnectorResponse(client, text=None, blocks=None)

Bases: abacusai.return_class.AbstractApiClass

The response to a slack command formatted to be readable by Slack

Parameters:
  • client (ApiClient) – An authenticated API Client instance

  • text (str) – The text body of the response, which becomes the returned message

  • blocks (list) – List of blocks in the response

__repr__()

Return repr(self).

to_dict()

Get a dict representation of the parameters in this class

Returns:

The dict value representation of the class parameters

Return type:

dict