Esempio n. 1
0
 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/');
     }
 }
Esempio n. 2
0
 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()));
     }
 }
Esempio n. 3
0
 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');
     }
 }
Esempio n. 4
0
 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/');
     }
 }
Esempio n. 5
0
 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/');
     }
 }
Esempio n. 6
0
 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/');
     }
 }
Esempio n. 7
0
 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);
     }
 }
Esempio n. 8
0
 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/');
     }
 }
Esempio n. 9
0
 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://eu.battle.net/oauth/');
     }
 }
Esempio n. 10
0
 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/');
     }
 }
Esempio n. 11
0
 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://aimalyzer:8080/api/1.0/');
     }
 }
Esempio n. 12
0
 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/');
     }
 }
Esempio n. 13
0
 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());
     }
 }
 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/');
     }
 }
Esempio n. 15
0
 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}/");
     }
 }
Esempio n. 16
0
 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/');
     }
 }
Esempio n. 17
0
 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() . '/');
     }
 }
Esempio n. 18
0
 public function __construct(CredentialsInterface $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, $scopes = array(), UriInterface $baseApiUri = null)
 {
     parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri);
 }
Esempio n. 19
0
 /**
  * @param CredentialsInterface $credentials
  * @param ClientInterface $httpClient
  * @param TokenStorageInterface $storage
  * @param array $scopes
  * @param UriInterface $baseApiUri
  * @param Service $service
  */
 public function __construct(CredentialsInterface $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, $scopes = array(), UriInterface $baseApiUri = null, Service $service)
 {
     $this->service = $service;
     parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri, $service->getValidateState());
 }