SMSFactor.SendSMS (SMSFactor v0.2.0) View Source
Wrappers around Send SMS section of SMSFactor API.
Link to this section Summary
Link to this section Types
Specs
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"
}
]
}
}
}
Specs
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"
}
Link to this section Functions
Specs
campaign(Tesla.Client.t(), send_campaign_params()) :: Tesla.Env.result()
Specs
campaign_with_list(Tesla.Client.t(), send_campaign_params()) :: Tesla.Env.result()
Specs
cancel_campaign(Tesla.Client.t(), String.t()) :: Tesla.Env.result()
Specs
simulate_campaign(Tesla.Client.t(), send_campaign_params()) :: Tesla.Env.result()
Specs
simulate_single_message(Tesla.Client.t(), send_sms_params()) :: Tesla.Env.result()
Specs
single_message(Tesla.Client.t(), send_sms_params()) :: Tesla.Env.result()