Direxion v0.1.3 Client.Directline View Source

A Microsoft Directline Client

Link to this section Summary

Functions

Send an activity to Directline the response is the Directline reponse. Parameters:

  • activity - The activity to send Returns a Directline Response

Send an activity to a conversation the response is the Directline reponse. Parameters:

  • conversation_id - The conversation to send the activity
  • activity - The activity to send Returns a Directline Response

Receive the activities from a conversation. Parameters:

  • conversation_id - The Conversation ID
  • activity_id - The Activity ID we want reponse to Returns a Response object

Sends an activity to a given conversation Parameters:

  • conversation_id - The Conversation ID
  • activity - The activity payload Returns a tuple containing the status of request and the activity ID

Starts a conversation with directline

Link to this section Functions

Link to this function message(activity) View Source
message(map()) :: map()

Send an activity to Directline the response is the Directline reponse. Parameters:

  • activity - The activity to send Returns a Directline Response
Link to this function message_conversation(conversation_id, activity) View Source
message_conversation(String.t(), map()) :: tuple()

Send an activity to a conversation the response is the Directline reponse. Parameters:

  • conversation_id - The conversation to send the activity
  • activity - The activity to send Returns a Directline Response
Link to this function receive_activities(conversation_id, activity_id) View Source
receive_activities(String.t(), String.t()) :: tuple()

Receive the activities from a conversation. Parameters:

  • conversation_id - The Conversation ID
  • activity_id - The Activity ID we want reponse to Returns a Response object.
Link to this function send_activity(conversation_id, activity) View Source
send_activity(String.t(), map()) :: tuple()

Sends an activity to a given conversation Parameters:

  • conversation_id - The Conversation ID
  • activity - The activity payload Returns a tuple containing the status of request and the activity ID
Link to this function start_conversation() View Source
start_conversation() :: tuple()

Starts a conversation with directline

Returns a tuple containing the status of request and the conversation ID