本文整理汇总了PHP中Client::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Client::__construct方法的具体用法?PHP Client::__construct怎么用?PHP Client::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Client
的用法示例。
在下文中一共展示了Client::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* 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();
}
示例2: __construct
public function __construct($baseUrl = '', $config = null)
{
$default = array();
$required = array('apikey');
$config = Collection::fromConfig($config, $default, $required);
parent::__construct($baseUrl, $config);
}
示例3: __construct
/**
*
* @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;
}
示例4:
/**
* 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);
}
示例5: __construct
public function __construct($id = 0, $ref = "")
{
parent::__construct();
if ($id > 0) {
$this->charger_id($id);
} else {
if ($ref != "") {
$this->charger_ref($ref);
}
}
}
示例6: __construct
/**
* 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/>";
}
示例7: __construct
public function __construct($endpoint, $header)
{
parent::__construct("Operation", $endpoint, $header);
}
示例8: __construct
/**
* SoapClient constructor.
*
* @param string $type
*/
public function __construct($type = '')
{
parent::__construct();
$this->getHeaderProvider()->setContent($type);
}
示例9:
/**
* Init client
*
* @param Request
*/
function __construct(Request $request)
{
parent::__construct($request);
}
示例10: __construct
public function __construct()
{
parent::__construct('localhost', 0, 'sdk');
}
示例11: __construct
public function __construct()
{
parent::__construct();
$this->setType('unregistered_client');
}
示例12: __construct
/**
* 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);
}
示例13: __construct
public function __construct($server, $path = false, $port = 80)
{
parent::__construct($server, $path, $port);
$this->useragent = 'The Incutio XML-RPC PHP Library (multicall client)';
}
示例14: __construct
/**
* 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);
}
示例15: __construct
public function __construct()
{
parent::__construct(null, null);
self::$url['base'] = Configuration::get('SHIPTOMYID_WEBSERVICE_URL');
}