Class XmlClient
Driver for XML-based services.
- tschiemer\Aspsms\AbstractClient
-
tschiemer\Aspsms\Xml\XmlClient
Namespace: tschiemer\Aspsms\Xml
Package: aspsms
Copyright: 2013 Philip Tschiemer, <tschiemer@filou.se>
License: v3 http://www.gnu.org/licenses/lgpl-3.0.txt
Version: 1.1.0
Link: https://github.com/tschiemer/aspsms-php
Located at lib/tschiemer/Aspsms/Xml/XmlClient.php
Package: aspsms
Copyright: 2013 Philip Tschiemer, <tschiemer@filou.se>
License: v3 http://www.gnu.org/licenses/lgpl-3.0.txt
Version: 1.1.0
Link: https://github.com/tschiemer/aspsms-php
Located at lib/tschiemer/Aspsms/Xml/XmlClient.php
public
|
|
public
array
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
canProcess(),
clear(),
getResponse()
|
string |
ENCODING
|
'ISO-8859-1' |
public
string[]
|
$servers | array(
'http://xml1.aspsms.com:5061/xmlsvr.asp',
'http://xml1.aspsms.com:5098/xmlsvr.asp',
'http://xml2.aspsms.com:5061/xmlsvr.asp',
'http://xml2.aspsms.com:5098/xmlsvr.asp'
) |
#
Available urls for xml interface |
public
string[]
|
$options | array(
'encodingIn' => 'UTF-8',
'encodingOut'=> 'UTF-8'
) |
#
internal options |
public
array
|
$curlOpt | array(
CURLOPT_USERAGENT => 'aspsms-php v1 xml:1',
CURLOPT_SSL_VERIFYPEER => FALSE
) |
#
List of CURL options to use. |
public
|
$requestDOM |
|
|
public
|
$responseDOM |
|
|
public
string[]
|
$entities | array() |
|
public
array[]
|
$requests | array(
'getCredits' => array(
'action' => 'ShowCredits',
'param' => array(
'UserKey' => '',
'Password' => ''
)),
'sendText' => array(
'action' => 'SendTextSMS',
'param' => array(
'UserKey' => '',
'Password' => '',
'Recipients'=> '',
'Originator'=> '',
'MessageText' => '',
'DeferredDeliveryTime' => '',
'FlashingSMS'=> '',
'TimeZone' => '',
'URLBufferedMessageNotification' => '',
'URLDeliveryNotification' => '',
'URLNonDeliveryNotification' => '',
'AffiliateId' => ''
)),
'sendWapPush' => array(
'action' => 'SendWAPPushSMS',
'param' => array(
'UserKey' => '',
'Password' => '',
'Recipients'=> '',
'Originator'=> '',
'WapDescription' => '',
'WapURL' => '',
'DeferredDeliveryTime' => '',
'FlashingSMS'=> '',
'TimeZone' => '',
'URLBufferedMessageNotification' => '',
'URLDeliveryNotification' => '',
'URLNonDeliveryNotification' => '',
'AffiliateId' => ''
)),
'getDeliveryStatus' => array(
'action' => 'InquireDeliveryNotifications',
'param' => array(
'UserKey' => '',
'Password' => '',
'TransactionReferenceNumbers'=> ''
)),
'checkOriginator' => array(
'action' => 'CheckOriginatorAuthorization',
'param' => array(
'UserKey' => '',
'Password' => '',
'Originator'=> ''
)),
'sendOriginatorCode' => array(
'action' => 'SendOriginatorUnlockCode',
'param' => array(
'UserKey' => '',
'Password' => '',
'Originator'=> ''
)),
'unlockOriginator' => array(
'action' => 'UnlockOriginator',
'param' => array(
'UserKey' => '',
'Password' => '',
'Originator'=> '',
'OriginatorUnlockCode'=>'',
'AffiliateId'=> ''
)),
'sendPicture' => array(),
'sendLogo' => array(),
'sendGroupLogo' => array(),
'sendRingtone' => array(
'action' => 'SendRingtone',
'param' => array(
'UserKey' => '',
'Password' => '',
'Originator'=> '',
'AffiliateId'=> '',
'Recipients'=> '',
'URLBinaryFile' => ''
)),
'sendVCard' => array(
'action' => 'SendVCard',
'param' => array(
'UserKey' => '',
'Password' => '',
'Originator'=> '',
'AffiliateId'=> '',
'Recipients'=> '',
'VCard' => array()
)),
'sendBinaryData' => array()
) |
#
Request configuration |
$request,
$response
|