forked from ornicar/php-github-api
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathHttpClientInterface.php
More file actions
86 lines (79 loc) · 2.74 KB
/
HttpClientInterface.php
File metadata and controls
86 lines (79 loc) · 2.74 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?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 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 array $options reconfigure the request for this call only
*
* @return array Data
*/
public function post($path, array $parameters = array(), array $options = array());
/**
* Send a HEAD request
*
* @param string $path Request path
* @param array $parameters HEAD Parameters
* @param array $options reconfigure the request for this call only
*
* @return array Data
*/
public function head($path, array $parameters = array(), array $options = array());
/**
* Send a PATCH request
*
* @param string $path Request path
* @param array $parameters PATCH Parameters
* @param array $options reconfigure the request for this call only
*
* @return array Data
*/
public function patch($path, array $parameters = array(), array $options = array());
/**
* Send a PUT request
*
* @param string $path Request path
* @param array $parameters PUT Parameters
* @param array $options reconfigure the request for this call only
*
* @return array Data
*/
public function put($path, array $parameters = array(), array $options = array());
/**
* Send a DELETE request
*
* @param string $path Request path
* @param array $parameters DELETE Parameters
* @param array $options reconfigure the request for this call only
*
* @return array Data
*/
public function delete($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);
}