/**
  * Construct an instance of the OAuth2 API client.
  *
  * @param string $clientId The OAuth Client ID provided by NetGalley.
  * @param string $clientSecret The OAuth Client secret.
  * @param string $authorizationCode The authorization code if requesting a token for granting third-party access.
  * @param bool $isTest Set to true during development.
  */
 public function __construct($clientId, $clientSecret, $authorizationCode = null, $isTest = false)
 {
     parent::__construct(null, $clientId, $clientSecret, $isTest);
     $this->authorizationCode = $authorizationCode;
     // make an initial request to get the OAuth token
     $this->requestToken();
 }
 public function __construct($baseUrl = '', $config = null)
 {
     $default = array();
     $required = array('apikey');
     $config = Collection::fromConfig($config, $default, $required);
     parent::__construct($baseUrl, $config);
 }
Example #3
0
 /**
  *
  * @param int $partner_id Mollie Account Number
  * @param string $profile_key Mollie Payment Profile key
  * @param string $base_url Webservice API base. The path will be appended to this.
  * @param ClientInterface $client Client to be used by the Browser instance
  */
 public function __construct($partner_id, $profile_key = null, $base_url, ClientInterface $client = null)
 {
     parent::__construct($base_url, $client);
     // Set properties
     $this->setPartnerId($partner_id);
     $this->profileKey = $profile_key;
 }
Example #4
0
 /**
  * Local client constructor
  *
  * @param \Zend\Soap\Server\Server $server
  * @param string $wsdl
  * @param array $options
  */
 function __construct(\Zend\Soap\Server\Server $server, $wsdl, $options = null)
 {
     $this->_server = $server;
     // Use Server specified SOAP version as default
     $this->setSoapVersion($server->getSoapVersion());
     parent::__construct($wsdl, $options);
 }
 public function __construct($id = 0, $ref = "")
 {
     parent::__construct();
     if ($id > 0) {
         $this->charger_id($id);
     } else {
         if ($ref != "") {
             $this->charger_ref($ref);
         }
     }
 }
 /**
  * param: $secret must have key: "username" and "password"
  */
 public function __construct($url, array $secret)
 {
     if (!array_key_exists("username", $secret) || !array_key_exists("password", $secret)) {
         echo "Openstack: __construct has err param: {$secret}";
         return null;
     }
     $this->setSecret($secret);
     $this->setAuthUrl($url);
     //ÕâÀïÖ»Óд¿ip
     parent::__construct();
     echo "<br/>Openstack __construct() ok <br/>";
 }
Example #7
0
 public function __construct($endpoint, $header)
 {
     parent::__construct("Operation", $endpoint, $header);
 }
Example #8
0
 /**
  * SoapClient constructor.
  *
  * @param string $type
  */
 public function __construct($type = '')
 {
     parent::__construct();
     $this->getHeaderProvider()->setContent($type);
 }
Example #9
0
 /**
  * Init client
  * 
  * @param Request
  */
 function __construct(Request $request)
 {
     parent::__construct($request);
 }
Example #10
0
 public function __construct()
 {
     parent::__construct('localhost', 0, 'sdk');
 }
 public function __construct()
 {
     parent::__construct();
     $this->setType('unregistered_client');
 }
Example #12
0
 /**
  * Call parent constructer
  * 
  * @param  string $socket
  * @param  integer $length
  * @param  integer $timeout
  * @param  boolean $debug
  * @param  string $destination
  * @return boolean
  */
 public function __construct($socket = 'tcp://localhost:8000', $length = 1024, $timeout = 30, $debug = false, $destination = '/log/msgpack-rpc-client.log')
 {
     parent::__construct($socket, $length, $timeout, $debug, $destination);
 }
Example #13
0
 public function __construct($server, $path = false, $port = 80)
 {
     parent::__construct($server, $path, $port);
     $this->useragent = 'The Incutio XML-RPC PHP Library (multicall client)';
 }
Example #14
0
 /**
  * Constructor
  *
  * @param string $wsdl
  * @param array $options
  */
 public function __construct($wsdl = null, $options = null)
 {
     // Use SOAP 1.1 as default
     $this->setSoapVersion(SOAP_1_1);
     parent::__construct($wsdl, $options);
 }
 public function __construct()
 {
     parent::__construct(null, null);
     self::$url['base'] = Configuration::get('SHIPTOMYID_WEBSERVICE_URL');
 }
Example #16
0
 public function __construct($host, $port, $timeout_ms = 2000)
 {
     parent::__construct($host, $port, $timeout_ms);
     $this->easy();
 }
Example #17
0
 public function __construct($key)
 {
     parent::__construct($key);
 }
Example #18
0
 public function __construct($endpoint, $header)
 {
     parent::__construct("Authorize", $endpoint, $header);
 }
Example #19
0
 public function __construct($deploymentUuid, $sessionBuilder, $cache)
 {
     $this->cache = $cache;
     $deployment = \Myna\Data\Deployment::fromArray(json_decode($cache->get($deploymentUuid), true));
     parent::__construct($deployment, $sessionBuilder);
 }