alixir_sms v0.1.5 Alixir.SMS View Source

Alixir.SMS enables sms service for Aliyun.

Examples

Alixir.SMS.send_sms(args...)
|> Alixir.request()

Link to this section Summary

Functions

Send SMS. Return an Alixir.SMS.SendSMSOperation struct which could be passed to Alixir.request to perform the request.

Link to this section Functions

Link to this function

send_sms(phone_numbers, sign_name, template_code, template_param \\ %{}, out_id \\ "")

View Source

Specs

send_sms(
  String.t() | [String.t(), ...],
  String.t(),
  String.t(),
  struct(),
  String.t()
) :: %Alixir.SMS.SendSMSOperation{
  http_method: :get,
  out_id: term(),
  phone_numbers: term(),
  sign_name: term(),
  template_code: term(),
  template_param: term()
}

Send SMS. Return an Alixir.SMS.SendSMSOperation struct which could be passed to Alixir.request to perform the request.

Example

iex> Alixir.SMS.send_sms("15000000000", "云通信", "SMS_0000", %{code: "1234", product: "ytx"}, "abcdefg") %Alixir.SMS.SendSMSOperation{

http_method: :get,
phone_numbers: "15000000000",
sign_name: "云通信",
template_code: "SMS_0000",
template_param: %{code: "1234", product: "ytx"},
out_id: "abcdefg"

}