Skip to content

Commit

Permalink
add query param support to currencies method
Browse files Browse the repository at this point in the history
  • Loading branch information
dklymenk committed May 10, 2021
1 parent 06bb09e commit b99b28e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Exchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -136,4 +136,4 @@ private function fetch($route, array $options, $responseKey = 'rates')
);
return $response[$responseKey];
}
}
}

0 comments on commit b99b28e

Please sign in to comment.