当前位置: 首页>>代码示例>>PHP>>正文


PHP Client::__construct方法代码示例

本文整理汇总了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();
 }
开发者ID:fbng,项目名称:netgalley-api-client,代码行数:15,代码来源:OauthClient.php

示例2: __construct

 public function __construct($baseUrl = '', $config = null)
 {
     $default = array();
     $required = array('apikey');
     $config = Collection::fromConfig($config, $default, $required);
     parent::__construct($baseUrl, $config);
 }
开发者ID:palantirnet,项目名称:rottentomatoes,代码行数:7,代码来源:RottenTomatoesClient.php

示例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;
 }
开发者ID:ruudk,项目名称:AMNL-Mollie,代码行数:14,代码来源:BaseGateway.php

示例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);
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:14,代码来源:Local.php

示例5: __construct

 public function __construct($id = 0, $ref = "")
 {
     parent::__construct();
     if ($id > 0) {
         $this->charger_id($id);
     } else {
         if ($ref != "") {
             $this->charger_ref($ref);
         }
     }
 }
开发者ID:anti-conformiste,项目名称:thelia1,代码行数:11,代码来源:ClientAdmin.class.php

示例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/>";
 }
开发者ID:wizzhangquan,项目名称:phpOpenstackRestful,代码行数:15,代码来源:Openstack.php

示例7: __construct

 public function __construct($endpoint, $header)
 {
     parent::__construct("Operation", $endpoint, $header);
 }
开发者ID:lukio,项目名称:sdk-php,代码行数:4,代码来源:Operation.php

示例8: __construct

 /**
  * SoapClient constructor.
  *
  * @param string $type
  */
 public function __construct($type = '')
 {
     parent::__construct();
     $this->getHeaderProvider()->setContent($type);
 }
开发者ID:demvsystems,项目名称:curl,代码行数:10,代码来源:SoapClient.php

示例9:

 /**
  * Init client
  * 
  * @param Request
  */
 function __construct(Request $request)
 {
     parent::__construct($request);
 }
开发者ID:getfivestars,项目名称:php-sdk,代码行数:9,代码来源:CurlClient.php

示例10: __construct

 public function __construct()
 {
     parent::__construct('localhost', 0, 'sdk');
 }
开发者ID:plesk,项目名称:api-php-lib,代码行数:4,代码来源:InternalClient.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setType('unregistered_client');
 }
开发者ID:gitter-badger,项目名称:oauth2-server-library,代码行数:5,代码来源:UnregisteredClient.php

示例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);
 }
开发者ID:novutec,项目名称:MessagePackRpcClient,代码行数:14,代码来源:Api.php

示例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)';
 }
开发者ID:kissifrot,项目名称:php-ixr,代码行数:5,代码来源:ClientMulticall.php

示例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);
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:12,代码来源:DotNet.php

示例15: __construct

 public function __construct()
 {
     parent::__construct(null, null);
     self::$url['base'] = Configuration::get('SHIPTOMYID_WEBSERVICE_URL');
 }
开发者ID:ship2myidpresta,项目名称:shiptomyid-1,代码行数:5,代码来源:ShiptoAPI.php


注:本文中的Client::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。