public function __construct($username, $password) { parent::__construct(array("wsdl" => "Calendar.wsdl", "securityToken" => new WSSecurityToken(array("user" => $username, "password" => $password, "passwordType" => "Digest")), "useSOAP" => 1.2, "policy" => new WSPolicy(array("security" => array("useUsernameToken" => TRUE))), "useWSA" => true, "to" => self::ENDPOINT)); $this->proxy = $this->getProxy(); $this->username = $username; $this->password = $password; }
/** * Construct the AmazonClient * @param $amazon_key Amazon App Key */ public function __construct($amazon_key, $method) { if ($method == "SOAP" || $method == "soap") { parent::__construct(array("to" => self::AMAZON_SOAP_ENDPOINT, "useSOAP" => "1.1", "action" => "http://soap.amazon.com")); $this->is_soap = TRUE; } else { parent::__construct(array("to" => self::AMAZON_REST_ENDPOINT, "HTTPMethod" => "GET", "useSOAP" => FALSE)); $this->is_soap = FALSE; } $this->amazon_key = $amazon_key; }
function __construct($key, $secure = false, $urlparams = array()) { $this->key = $key; $this->urlparams = $urlparams; if (!isset($this->urlparams['protocol'])) { $this->urlparams['protocol'] = 7; } $this->events = array(); $this->socket_id = ""; $this->activity_timeout = 0; parent::__construct(self::PUSHER_HOSTNAME, $this->makeURL(), $secure); }
/** * Construct the FlickrClient */ public function __construct($api_key) { parent::__construct(array("to" => self::ENDPOINT)); $this->api_key = $api_key; }
/** * Construct the YahooClient * @param $app_id Yahoo App Key */ public function __construct($app_id) { parent::__construct(array("HTTPMethod" => "GET", "useSOAP" => FALSE)); $this->app_id = $app_id; }
public function __construct($username, $password) { parent::__construct(array("wsdl" => "Calendar.wsdl", "securityToken" => new WSSecurityToken(array("user" => $username, "password" => $password, "passwordType" => "plain")), "classmap" => $this->getClassmap(), "to" => self::ENDPOINT)); $this->proxy = $this->getProxy(); $this->username = $username; $this->password = $password; }
/** * Construct the AmazonClient * @param $amazon_key Amazon App Key */ public function __construct($amazon_key) { parent::__construct(array("to" => self::AMAZON_ENDPOINT, "HTTPMethod" => GET, "useSOAP" => FALSE)); $this->amazon_key = $amazon_key; }