1 | <?php |
||
8 | class Request |
||
9 | { |
||
10 | private $apiKey = null; |
||
11 | private $url = null; |
||
12 | private $method; |
||
13 | private $args; |
||
14 | |||
15 | /** |
||
16 | * @param $url |
||
17 | * @param $apiKey |
||
18 | * @param $method |
||
19 | * @param array $args |
||
20 | */ |
||
21 | 35 | public function __construct($url, $apiKey, $method, $args = array()) |
|
28 | |||
29 | /** |
||
30 | * Send the built request url against the etherpad lite instance |
||
31 | * |
||
32 | * @return ResponseInterface |
||
33 | */ |
||
34 | public function send() |
||
45 | |||
46 | /** |
||
47 | * Returns the path of the request url |
||
48 | * |
||
49 | * @return string |
||
50 | */ |
||
51 | protected function getUrlPath() |
||
61 | |||
62 | /** |
||
63 | * Maps the given arguments from Client::__call to the parameter of the api method |
||
64 | * |
||
65 | * @return array |
||
66 | */ |
||
67 | 35 | public function getParams() |
|
84 | } |
||
85 |