Class Message
public
|
#
__construct( type $key, type $secret )
Creates a Message Object which will store all the details needed to send a message to recipients through the SMSJuice API |
public
|
|
public
|
#
setRecipientList( type $recipient_list )
Sets the recipient list, and filters out all invalid recipient numbers |
public
|
|
public
|
#
setRecipientType( type $type )
Set the type of recipient, either "numbers" for contacts put in the recipients list OR "groups" for names of groups on your account. |
public
|
|
public
|
#
setSendDate( String $schedule )
The date and time at which the message can be sent. It is not mandatory to set this. If set, it has to be in 'Y-m-d H:i:s' format. Example -> '2015-03-27 15:00' |
public
|
#
setExpiryDate( String $expiry )
setExpiryDate - The date and time at which the message would expire if not delivered yet. It is not mandatory to set this. If set, it has to be in 'Y-m-d H:i' format. Example -> '2015-03-27 15:00'. Only works if send date has been set, and the default expiry period is 2 days fromt he date of sending |
public
|
#
setEncoding( type $encoding )
Message encoding, which identifies what characterset is used to write and send the message |
public
String
|
integer |
RECIPIENT
|
#
0
|
integer |
SENDER
|
#
1
|
boolean |
LONG_MESSAGE_SET
|
#
true
|
boolean |
NORMAL_MESSAGE_SET
|
#
true
|