ExFacebookMessenger v0.3.0 FacebookMessenger.Sender

Module responsible for communicating back to facebook messenger

Summary

Functions

creates a json payload to send to facebook

creates a payload to send to facebook

sends a message to the the recepient

return the url to hit to send the message

Functions

json_payload(recepient, message)

creates a json payload to send to facebook

  • :recepient - the recepient to send the message to
  • :message - the message to send
payload(recepient, message)

creates a payload to send to facebook

  • :recepient - the recepient to send the message to
  • :message - the message to send
send(recepient, message)

Specs

send(String.t, String.t) :: HTTPotion.Response.t

sends a message to the the recepient

  • :recepient - the recepient to send the message to
  • :message - the message to send
url()

return the url to hit to send the message