forked from KnpLabs/php-github-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHttpClientInterface.php
More file actions
44 lines (41 loc) · 1.35 KB
/
HttpClientInterface.php
File metadata and controls
44 lines (41 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* Performs requests on GitHub API. API documentation should be self-explanatory.
*
* @author Thibault Duplessis <thibault.duplessis at gmail dot com>
* @license MIT License
*/
interface Github_HttpClientInterface
{
/**
* Send a GET request
*
* @param string $path Request path
* @param array $parameters GET Parameters
* @param string $httpMethod HTTP method to use
* @param array $options reconfigure the request for this call only
*
* @return array Data
*/
public function get($path, array $parameters = array(), array $options = array());
/**
* Send a POST request
*
* @param string $path Request path
* @param array $parameters POST Parameters
* @param string $httpMethod HTTP method to use
* @param array $options reconfigure the request for this call only
*
* @return array Data
*/
public function post($path, array $parameters = array(), array $options = array());
/**
* Change an option value.
*
* @param string $name The option name
* @param mixed $value The value
*
* @return Github_HttpClientInterface The current object instance
*/
public function setOption($name, $value);
}