Skip to content

Commit 6d803b8

Browse files
committed
Add parameters to get and delete methods
1 parent 43a1e3c commit 6d803b8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Http.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,13 @@ protected function createRequest($verb, $path, $parameters = [])
6666
* Retrieves http response for a request with the delete method.
6767
*
6868
* @param string $path
69+
* @param array $parameters
6970
*
7071
* @return object
7172
*/
72-
public function delete($path)
73+
public function delete($path, $parameters = [])
7374
{
74-
$request = $this->getRequest('DELETE', $path);
75+
$request = $this->getRequest('DELETE', $path, $parameters);
7576

7677
return $this->sendRequest($request);
7778
}
@@ -80,12 +81,13 @@ public function delete($path)
8081
* Retrieves http response for a request with the get method.
8182
*
8283
* @param string $path
84+
* @param array $parameters
8385
*
8486
* @return object
8587
*/
86-
public function get($path)
88+
public function get($path, $parameters = [])
8789
{
88-
$request = $this->getRequest('GET', $path);
90+
$request = $this->getRequest('GET', $path, $parameters);
8991

9092
return $this->sendRequest($request);
9193
}

0 commit comments

Comments
 (0)