telnyx v0.1.1 Telnyx.Message View Source
Documentation for sending a Message.
Link to this section Summary
Functions
Sends a message.
Link to this section Functions
Link to this function
create(api_key, params)
View Sourcecreate(String.t(), map()) :: {:ok, map()} | {:error, Telnyx.error()}
Sends a message.
Examples
api_key = "YOUR_API_KEY"
Telnyx.Message.create(api_key, %{
messaging_profile_id: "3fa85f55-5717-4562-b3fc-2c963f63vga6",
from: "+18665552368", # Your Telnyx number
to: "+18445552367",
text: "Hello, World!"
})
See https://developers.telnyx.com/docs/api/v2/messaging/Messages for more options