File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
src/Picqer/Carriers/SendCloud Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 22composer.phar
33composer.lock
44vendor /
5+ .idea
Original file line number Diff line number Diff line change @@ -111,13 +111,14 @@ public function apiUrl()
111111 /**
112112 * Perform a GET request
113113 * @param string $url
114+ * @param array $params
114115 * @return array
115116 * @throws SendCloudApiException
116117 */
117- public function get ($ url )
118+ public function get ($ url, $ params = [] )
118119 {
119120 try {
120- $ result = $ this ->client ()->get ($ url );
121+ $ result = $ this ->client ()->get ($ url, [ ' query ' => $ params ] );
121122 return $ this ->parseResponse ($ result );
122123 } catch (RequestException $ e ) {
123124 if ($ e ->hasResponse ()) {
Original file line number Diff line number Diff line change 1414trait FindAll
1515{
1616
17- public function all ()
17+ public function all ($ params = [] )
1818 {
19- $ result = $ this ->connection ()->get ($ this ->url );
19+ $ result = $ this ->connection ()->get ($ this ->url , $ params );
2020
2121 return $ this ->collectionFromResult ($ result );
2222 }
You can’t perform that action at this time.
0 commit comments