You are here

function _campaignmonitor_create_client in Campaign Monitor 5

Same name and namespace in other branches
  1. 6 campaignmonitor.module \_campaignmonitor_create_client()
4 calls to _campaignmonitor_create_client()
_campaignmonitor_add_subscriber in ./campaignmonitor.module
_campaignmonitor_get_subscriber in ./campaignmonitor.module
_campaignmonitor_is_subscribed in ./campaignmonitor.module
_campaignmonitor_remove_subscriber in ./campaignmonitor.module

File

./campaignmonitor.module, line 380

Code

function _campaignmonitor_create_client() {
  $client = new SoapClient(null, array(
    "location" => "http://app.campaignmonitor.com/api/api.asmx",
    "uri" => "http://app.campaignmonitor.com/api/",
    "style" => SOAP_RPC,
    "use" => SOAP_LITERAL,
    "trace" => true,
    "connection_timeout" => (int) variable_get('campaignmonitor_connection_timeout', '15'),
  ));
  return $client;
}