Skip to content

Commit 011fd1c

Browse files
fix guzzle get parameters
1 parent b8728a1 commit 011fd1c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Collection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private function execute($url, $params)
6565
'Accept-Version' => 'v1',
6666
'Authorization' => 'Client-ID '. config('unsplash.ApplicationID')
6767
],
68-
'form_params' => $params
68+
'query' => $params
6969
]);
7070
$body = (string) $response->getBody();
7171
$this->response = json_decode($body);

src/Photo.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private function execute($url, $params)
8484
'Accept-Version' => 'v1',
8585
'Authorization' => 'Client-ID '. config('unsplash.ApplicationID')
8686
],
87-
'form_params' => $params
87+
'query' => $params
8888
]);
8989
$body = (string) $response->getBody();
9090
$this->response = json_decode($body);

src/Search.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ private function execute($url, $params)
5050
'Accept-Version' => 'v1',
5151
'Authorization' => 'Client-ID '. config('unsplash.ApplicationID')
5252
],
53-
'form_params' => $params
53+
'query' => $params
5454
]);
5555
$body = (string) $response->getBody();
5656
$this->response = json_decode($body);

src/User.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private function execute($url, $params)
6565
'Accept-Version' => 'v1',
6666
'Authorization' => 'Client-ID '. config('unsplash.ApplicationID')
6767
],
68-
'form_params' => $params
68+
'query' => $params
6969
]);
7070
$body = (string) $response->getBody();
7171
$this->response = json_decode($body);

0 commit comments

Comments
 (0)