Twilio.Calls.UserDefinedMessages (twilio v0.2.0)

Copy Markdown

API calls: create.

Summary

Functions

Create a new User Defined Message for the given Call SID.

Functions

create(call_sid, params \\ %{}, opts \\ [])

@spec create(String.t(), map() | keyword(), keyword()) ::
  {:ok, Twilio.Schemas.UserDefinedMessage.t()}
  | {:error, Infusion.Runtime.Error.t()}

Create a new User Defined Message for the given Call SID.

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessages.json

Path parameters

  • call_sid (required) - The SID of the Call the User Defined Message is associated with.

{AccountSid} in the path is the :account_sid setting; pass account_sid: "..." as an option to use another.

Parameters

  • content (required) - The User Defined Message in the form of URL-encoded JSON string.
  • idempotency_key - A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated.

create!(call_sid, params \\ %{}, opts \\ [])

Like create/3, but returns the result or raises Infusion.Runtime.Error.