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


PHP AbstractService::__construct方法代码示例

本文整理汇总了PHP中OAuth\OAuth2\Service\AbstractService::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractService::__construct方法的具体用法?PHP AbstractService::__construct怎么用?PHP AbstractService::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在OAuth\OAuth2\Service\AbstractService的用法示例。


在下文中一共展示了AbstractService::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct(CredentialsInterface $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, $scopes = array(), UriInterface $baseApiUri = null)
 {
     parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri, true);
     if (null === $baseApiUri) {
         $this->baseApiUri = new Uri('https://sandbox-quickbooks.api.intuit.com/');
     }
 }
开发者ID:raycho,项目名称:PHPoAuthLib,代码行数:7,代码来源:Intuit.php

示例2: __construct

 public function __construct(CredentialsInterface $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, $scopes = array(), UriInterface $baseApiUri = null)
 {
     parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri);
     if (is_null($this->baseApiUri) && $storage->hasAccessToken($this->service())) {
         $this->setBaseApiUri($storage->retrieveAccessToken($this->service()));
     }
 }
开发者ID:vladvoth,项目名称:productclash,代码行数:7,代码来源:Mailchimp.php

示例3: __construct

 public function __construct(CredentialsInterface $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, $scopes = array(), UriInterface $baseApiUri = null, $apiVersion = "")
 {
     parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri, false, $apiVersion);
     if (null === $baseApiUri) {
         $this->baseApiUri = new Uri('http://server.oauth2.nukeviet.vn/oauth2/resource');
     }
 }
开发者ID:vuthao,项目名称:nukeviet-oauth2,代码行数:7,代码来源:NukeViet.php

示例4: __construct

 public function __construct(\OAuth\Common\Consumer\CredentialsInterface $credentials, \OAuth\Common\Http\Client\ClientInterface $httpClient, \OAuth\Common\Storage\TokenStorageInterface $storage, $scopes = array(), \OAuth\Common\Http\Uri\UriInterface $baseApiUri = null)
 {
     parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri);
     if (null === $baseApiUri) {
         $this->baseApiUri = new Uri('https://www.readability.com/api/rest/v1/');
     }
 }
开发者ID:Type-of-Read,项目名称:Readability-API-1,代码行数:7,代码来源:Request.php

示例5: __construct

 public function __construct(CredentialsInterface $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, $scopes = array(), UriInterface $baseApiUri = null, $apiVersion = "v3")
 {
     parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri, true, $apiVersion);
     if (null === $baseApiUri) {
         $this->baseApiUri = new Uri('https://api.twitch.tv/kraken/');
     }
 }
开发者ID:freaktechnik,项目名称:PHPoAuthLib,代码行数:7,代码来源:Twitch.php

示例6: __construct

 public function __construct(CredentialsInterface $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, $scopes = array(), UriInterface $baseApiUri = null)
 {
     parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri);
     if (null === $baseApiUri) {
         $this->baseApiUri = new Uri('http://rest.bullhornstaffing.com/rest-services/');
     }
 }
开发者ID:davenorthcreek,项目名称:stratum,代码行数:7,代码来源:BullhornService.php

示例7: __construct

 public function __construct(CredentialsInterface $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, $scopes = array(), UriInterface $baseApiUri = null)
 {
     parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri);
     if ($baseApiUri === null) {
         $this->baseApiUri = new Uri(self::API_URI_US);
     }
 }
开发者ID:RewardGateway,项目名称:PHPoAuthLib,代码行数:7,代码来源:BattleNet.php

示例8: __construct

 public function __construct(CredentialsInterface $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, $scopes = array(), UriInterface $baseApiUri = null)
 {
     parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri);
     if ($baseApiUri === null) {
         $this->baseApiUri = new Uri('https://getpocket.com/v3/');
     }
 }
开发者ID:DevSlashNull,项目名称:PHPoAuthLib,代码行数:7,代码来源:Pocket.php

示例9: __construct

 public function __construct(Credentials $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, $scopes = array(), UriInterface $baseApiUri = null)
 {
     parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri);
     if (null === $baseApiUri) {
         $this->baseApiUri = new Uri(static::BASE_URL . 'resource/');
     }
 }
开发者ID:paliari,项目名称:oauth2-client-facade,代码行数:7,代码来源:IsseHom.php

示例10: __construct

 public function __construct(Credentials $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, $scopes = array(), UriInterface $baseApiUri = null)
 {
     parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri);
     if (null === $baseApiUri) {
         $this->baseApiUri = new Uri('https://api.paypal.com/v1/');
     }
 }
开发者ID:Tarendai,项目名称:spring-website,代码行数:7,代码来源:Paypal.php

示例11: __construct

 public function __construct(CredentialsInterface $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, $scopes = [], UriInterface $baseApiUri = null, $apiVersion = "")
 {
     parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri, false, $apiVersion);
     $this->apiVersion = "v1";
     if (is_null($baseApiUri)) {
         $this->baseApiUri = new Uri(self::API_URL . $this->getApiVersionString());
     }
 }
开发者ID:artis-mosties,项目名称:oauth-php,代码行数:8,代码来源:Pinterest.php

示例12: __construct

 public function __construct(Credentials $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, $scopes = array(), UriInterface $baseApiUri = null)
 {
     $scopes = array();
     parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri);
     if (null === $baseApiUri) {
         $this->baseApiUri = new Uri('https://sisilogin.testeveonline.com/oauth/');
     }
 }
开发者ID:bastianh,项目名称:phpbb-ext-evesso,代码行数:8,代码来源:oauth_oauth2_evesso.php

示例13: __construct

 public function __construct(CredentialsInterface $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, $scopes = array(), UriInterface $baseApiUri = null)
 {
     parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri);
     $hlp = plugin_load('helper', 'oauth');
     $this->domain = $hlp->getConf('auth0-domain');
     if (null === $baseApiUri) {
         $this->baseApiUri = new Uri("https://{$this->domain}/");
     }
 }
开发者ID:araname,项目名称:dokuwiki-plugin-oauth,代码行数:9,代码来源:Auth0.php

示例14: __construct

 public function __construct(CredentialsInterface $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, $scopes = array(), UriInterface $baseApiUri = null)
 {
     if (empty($scopes)) {
         $scopes = array(self::SCOPE_PUBLIC);
     }
     parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri, true);
     if (null === $baseApiUri) {
         $this->baseApiUri = new Uri('https://www.strava.com/api/v3/');
     }
 }
开发者ID:clee03,项目名称:metal,代码行数:10,代码来源:Strava.php

示例15: __construct

 public function __construct(CredentialsInterface $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, $scopes = array(), UriInterface $baseApiUri = null, $apiVersion = "")
 {
     parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri, true, $apiVersion);
     if (null === $baseApiUri) {
         $this->baseApiUri = new Uri('https://graph.facebook.com' . $this->getApiVersionString() . '/');
     }
 }
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:7,代码来源:Facebook.php


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