Skip to content

Commit 85eb593

Browse files
committed
Add parameters to get and delete methods
t
1 parent 43a1e3c commit 85eb593

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
#Changelog
22
All Notable changes to `trello-php` will be documented in this file
33

4+
## 0.3.2 - 2015-09-22
5+
6+
### Added
7+
- Add parameters to GET and DELETE Http methods
8+
9+
### Deprecated
10+
- Nothing
11+
12+
### Fixed
13+
- Nothing
14+
15+
### Removed
16+
- Nothing
17+
18+
### Security
19+
- Nothing
20+
421
## 0.3.1 - 2015-09-11
522

623
### Added

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)