Skip to content

Commit

Permalink
Merge pull request #1 from dklymenk/master
Browse files Browse the repository at this point in the history
add query param support to currencies method
  • Loading branch information
faizanakram99 authored May 17, 2021
2 parents 06bb09e + b99b28e commit bb951c3
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 bb951c3

Please sign in to comment.