Lines Matching refs:http
30 ClientInterface $http, argument
43 return $this->attachCredentialsCache($http, $credentials, $tokenCallback);
47 ClientInterface $http, argument
54 $authHttp = $this->createAuthHttp($http);
62 $http->setDefaultOption('auth', 'google_auth');
63 $http->getEmitter()->attach($subscriber);
65 return $http;
68 public function attachToken(ClientInterface $http, array $token, array $scopes) argument
81 $http->setDefaultOption('auth', 'scoped');
82 $http->getEmitter()->attach($subscriber);
84 return $http;
87 public function attachKey(ClientInterface $http, $key) argument
91 $http->setDefaultOption('auth', 'simple');
92 $http->getEmitter()->attach($subscriber);
94 return $http;
97 private function createAuthHttp(ClientInterface $http) argument
101 'base_url' => $http->getBaseUrl(),
104 'verify' => $http->getDefaultOption('verify'),
105 'proxy' => $http->getDefaultOption('proxy'),