SMSFactor.SendSMS (SMSFactor v0.5.0)
View SourceWrappers around Send SMS section of SMSFactor API.
Summary
Types
Params for sending SMS campaign.
text(required) : Your messagevalue(required) : The recipients' numberspushtype: The push type (alert or marketing)delay: Sending date Y-m-d H:i:ssender: Allows you to customize the sendergsmsmsid: An id of your choice to link it to its delivery report
Example
{
"sms": {
"message": {
"text": "Message via API",
"pushtype": "alert",
"sender": "Illidan",
"delay": "2021-06-06 10:28:32"
},
"recipients": {
"gsm": [
{
"gsmsmsid": "100",
"value": "33612345678"
},
{
"gsmsmsid": "101",
"value": "33612345677"
}
]
}
}
}
Params for sending SMS.
token(required if not in headers) : Your tokentext(required) : Your messageto(required) : Your destinationpushtype: The push type (alert or marketing)delay: Sending date Y-m-d H:i:ssender: Allows you to customize the sendergsmsmsid: An id of your choice to link it to its delivery report
Example
{
"text": "Message via API",
"to": ""33612345678"
"pushtype": "alert",
"sender": "Illidan",
"delay": "2021-06-06 10:28:32",
"gsmsmsid": "100"
}
Functions
@spec campaign(Tesla.Client.t(), send_campaign_params()) :: Tesla.Env.result()
@spec campaign_with_list(Tesla.Client.t(), send_campaign_params()) :: Tesla.Env.result()
@spec cancel_campaign(Tesla.Client.t(), String.t()) :: Tesla.Env.result()
@spec simulate_campaign(Tesla.Client.t(), send_campaign_params()) :: Tesla.Env.result()
@spec simulate_single_message(Tesla.Client.t(), send_sms_params()) :: Tesla.Env.result()
@spec single_message(Tesla.Client.t(), send_sms_params()) :: Tesla.Env.result()