Glific v0.3.1 GlificWeb.Providers.Gupshup.Controllers.MessageEventController View Source

Dedicated controller to handle all the message status requests like read, delivered etc..

Link to this section Summary

Functions

Message has been delivered to whats app

Message status when the message has been sent to gupshup

Message status when gupshup could not send the message to whats app

Default handle for all message event callbacks

Message has been read by the beneficiary

Message has been sent to whats app via Gupshup

Link to this section Functions

Specs

delivered(Plug.Conn.t(), map()) :: Plug.Conn.t()

Message has been delivered to whats app

Specs

enqueued(Plug.Conn.t(), map()) :: Plug.Conn.t()

Message status when the message has been sent to gupshup

Specs

failed(Plug.Conn.t(), map()) :: Plug.Conn.t()

Message status when gupshup could not send the message to whats app

Link to this function

handler(conn, params, msg)

View Source

Specs

handler(Plug.Conn.t(), map(), String.t()) :: Plug.Conn.t()

Default handle for all message event callbacks

Specs

read(Plug.Conn.t(), map()) :: Plug.Conn.t()

Message has been read by the beneficiary

Specs

sent(Plug.Conn.t(), map()) :: Plug.Conn.t()

Message has been sent to whats app via Gupshup