Skip to content

SendTemplatedBulkMessageWithOptions

Sends an SMS message to all the cell numbers provided (maximum of 5000). Message can contain parameters arrays in a format (eg. <1>, or <2>). Args is an array of arrays with each row having the same number of columns as cell numbers. Supported options are the following MsgContentType=Unicode | Ascii.

Returns the number of messages successfully queued, or an error message on failure.

// uses JQuery library
/** NOT CURRENTLY AVAILABLE **/

HTTP Request


ParameterDescriptionLocation
AccountKeyYour Swift SMS Gateway account keyBODY
ReferenceInternal Reference IDBODY
TemplateBodyThe template to use when sending the message. Using <1>, <2>, etc in the template will use values from ArgsBODY
CellNumbersArray of cell numbers to deliver SMS messages toBODY
Args

Array of ArrayOfString objects with values for the parameters in the template body

BODY
OptionsArray of strings with each containing [key]=[value]BODY

Options

ParameterValueDescriptionIs Default
MsgContentType Send message as ASCII or Unicode
UnicodeSend Unicode Message (allowing the extended character set)
ASCIISend messages using only ASCII charactersYes
SenderIdPhone number of dedicated long code to send your messages from
Reference2Secondary Reference field.

If this is an email address, any replies will be send to this address. This OVERRIDES account settings.

Returns

string

If successful, will return x messages queued successfully

If unsuccessful, will return an error message: (See (SendMessage))