We have detected an error in your notification set-up
(Event-ID dab39dc24f564ec7bd4628d1305fd03c).
Currently, we cannot inform you about inspection progress.
Please check that the user
557058:bca11929-8c2d-43f2-8a82-c5416880d395
still has access to your repository or
update the API account.
1 | <?php |
||
26 | class Client implements ClientInterface |
||
27 | { |
||
28 | /** |
||
29 | * @var array |
||
30 | */ |
||
31 | protected $options = array( |
||
32 | 'base_url' => 'https://api.bitbucket.org', |
||
33 | 'api_version' => '1.0', |
||
34 | 'api_versions' => array('1.0', '2.0'), // supported versions |
||
35 | 'format' => 'json', |
||
36 | 'formats' => array('json', 'xml'), // supported response formats |
||
37 | 'user_agent' => 'bitbucket-api-php/1.1.2 (https://bitbucket.org/gentlero/bitbucket-api)', |
||
38 | 'timeout' => 10, |
||
39 | 'verify_peer' => true |
||
40 | ); |
||
41 | |||
42 | /** @var HttpPluginClientBuilder */ |
||
43 | private $httpClientBuilder; |
||
44 | /** @var MessageFactory */ |
||
45 | private $messageFactory; |
||
46 | /** @var History */ |
||
47 | private $responseHistory; |
||
48 | |||
49 | public function __construct(array $options = array(), HttpPluginClientBuilder $httpClientBuilder = null) |
||
68 | 311 | ||
69 | /** |
||
70 | 311 | * {@inheritdoc} |
|
71 | 311 | */ |
|
72 | 311 | public function get($endpoint, $params = array(), $headers = array()) |
|
81 | 1 | ||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | 8 | */ |
|
85 | public function post($endpoint, $params = array(), $headers = array()) |
||
89 | |||
90 | 3 | /** |
|
91 | * {@inheritdoc} |
||
92 | 3 | */ |
|
93 | public function put($endpoint, $params = array(), $headers = array()) |
||
97 | |||
98 | 1 | /** |
|
99 | * {@inheritdoc} |
||
100 | 1 | */ |
|
101 | public function delete($endpoint, $params = array(), $headers = array()) |
||
105 | |||
106 | 1 | /** |
|
107 | * {@inheritdoc} |
||
108 | 1 | */ |
|
109 | public function request($endpoint, $params = array(), $method = 'GET', array $headers = array()) |
||
139 | |||
140 | /** |
||
141 | 16 | * @access public |
|
142 | * @return HttpMethodsClient |
||
143 | 16 | */ |
|
144 | public function getClient() |
||
148 | |||
149 | 14 | /** |
|
150 | 14 | * @access public |
|
151 | * @return HttpPluginClientBuilder |
||
152 | 14 | */ |
|
153 | public function getClientBuilder() |
||
157 | |||
158 | /** |
||
159 | 1 | * {@inheritdoc} |
|
160 | */ |
||
161 | 1 | public function getResponseFormat() |
|
165 | |||
166 | /** |
||
167 | 12 | * {@inheritdoc} |
|
168 | */ |
||
169 | 12 | public function setResponseFormat($format) |
|
179 | |||
180 | /** |
||
181 | 3 | * {@inheritdoc} |
|
182 | */ |
||
183 | 3 | public function getApiVersion() |
|
187 | |||
188 | /** |
||
189 | 17 | * {@inheritdoc} |
|
190 | */ |
||
191 | 17 | public function setApiVersion($version) |
|
204 | |||
205 | 95 | /** |
|
206 | * Check if specified API version is the one currently in use. |
||
207 | * |
||
208 | * @access public |
||
209 | * @param float $version |
||
210 | * @return bool |
||
211 | */ |
||
212 | public function isApiVersion($version) |
||
216 | |||
217 | 1 | /** |
|
218 | * {@inheritdoc} |
||
219 | */ |
||
220 | public function getApiBaseUrl() |
||
224 | |||
225 | 16 | /** |
|
226 | * @access public |
||
227 | * @return RequestInterface |
||
228 | */ |
||
229 | public function getLastRequest() |
||
233 | |||
234 | 7 | /** |
|
235 | * @access public |
||
236 | * @return ResponseInterface |
||
237 | */ |
||
238 | public function getLastResponse() |
||
242 | } |
||
243 |