From b99b28e09a8d10a30ff9f10bf4626e09bc2810dc Mon Sep 17 00:00:00 2001 From: Dmytro Klymenko Date: Mon, 10 May 2021 12:33:18 +0300 Subject: [PATCH] add query param support to currencies method --- Exchange.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Exchange.php b/Exchange.php index e0bd815..533dc03 100644 --- a/Exchange.php +++ b/Exchange.php @@ -105,12 +105,12 @@ public function convert(array $args) * @return array * @throws GuzzleException */ - public function currencies() + public function currencies(array $args = []) { return json_decode( $this ->client - ->request('GET', '/currencies.json') + ->request('GET', '/currencies.json', ['query' => array_merge($args, $this->options)]) ->getBody() ->getContents(), true @@ -136,4 +136,4 @@ private function fetch($route, array $options, $responseKey = 'rates') ); return $response[$responseKey]; } -} \ No newline at end of file +}