Skip to content

sms_info_get ​

php
array/boolean sms_info_get ( [number $nr_wysyłki] )

Returns an array with general information about completed or scheduled mailing $nr_wysylki. Returns false if no mailing information is found. When called without a parameter, returns information about all mailings. The returned array uses the following keys:

  • [sending] - mailing ID
  • [campaign] - campaign ID
  • [groups] - group ID(s)
  • [sender] - sender
  • [text] - message content
  • [filterSQL] - ID of the applied SQL filter
  • [filterSS] - ID of the applied SAREscript filter
  • [size] - size (number of SMS messages)
  • [date] - date as a timestamp
  • [sent] - number of sent messages
  • [in_progress] - whether sending is in progress

Example:

php
$get_info = sms_info_get();
print_r($get_info);

Result:

Array
(
 [1] => Array
 (
 [sending] => 1
 [campaign] => 33
 [groups] => Array
 (
 [0] => 1
 [1] => 10
 )
 [sender] => firma_X
 [text] => Hello, you have received an SMS from company X.
 [filterSQL] =>
 [filterSS] =>
 [size] => 1
 [date] => 1402312935
 [sent] => 5
 [in_progress] => 1
)

[2] => Array
(
 [sending] => 2
 [campaign] => 34
 [groups] => Array
 (
 [0] => 1
 [1] => 10
 )
 [sender] => JakasFirma.com
 [text] => Hello, you have received an SMS saying hello world...
 [filterSQL] =>Array
 (
 [0] => 82
 [1] => 156
 )
 [filterSS] => Array
 (
 [0] => 150
 )
 [size] => 1
 [date] => 1402312952
 [sent] => 10
 [in_progress] => 0
)